Files
better-auth/dev/bun/client.ts
Bereket Engida 9f2e45b8c7 chore: cleanup
2025-01-06 14:30:39 +03:00

14 lines
300 B
TypeScript

await fetch("http://localhost:4000/api/auth/sign-up/email", {
method: "POST",
body: JSON.stringify({
email: "test-2@test.com",
password: "password",
name: "test-2",
}),
headers: {
"content-type": "application/json",
},
})
.then((res) => res.json())
.then((data) => console.log(data));