const signUp = async () => {
await authClient.signUp.email(
{
email,
password,
name,
},
{
onRequest: () => {
console.warn("Sign up Initiated...");
},
onSuccess: () => {
alert("Successfully signed up!");
},
onError: (ctx) => {
alert(ctx.error);
},
}
);
};
const signUp = async () => {
await authClient.signUp.email(
{
email,
password,
name,
},
{
onRequest: () => {
console.warn("Sign up Initiated...");
},
onSuccess: () => {
alert("Successfully signed up!");
},
onError: (ctx) => {
alert(ctx.error);
},
}
);
};