mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
14 lines
300 B
TypeScript
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));
|