const register = await authClient.signUp.email({
email: values.email,
name: values.username,
password: values.password,
callbackURL: "/",
}, {
onRequest: (ctx) => {
setLoading(true);
console.log(ctx)
},
onError: (ctx) => {
setLoading(false);
console.log(ctx)
}
});
const register = await authClient.signUp.email({
email: values.email,
name: values.username,
password: values.password,
callbackURL: "/",
}, {
onRequest: (ctx) => {
setLoading(true);
console.log(ctx)
},
onError: (ctx) => {
setLoading(false);
console.log(ctx)
}
});