React SPA redirects on signIn and signUp
In a React SPA when I call authClient.signIn.email({email, password} my whole page does a hard reload on success. Is this intended behavior? I couldn't find the source code where this happens.
<Button
onClick={() => {
authClient.signUp.email({
email: "test@gmail.com",
password: "123456123213",
name: "test",
fetchOptions: {
onSuccess: () => {},
redirect: "manual",
},
});
}}
type="button"
>
Signup
</Button>