Questions about signup/signout in Next
The docs have this example code for email/password signup and signout:
1)
callbackURL
does not seem to do anything, is it deprecated or something or do I just manuallt redirect with next/navigation.
2) Signout does not refresh useSession
so my UI appears as the user is still logged in. Do I need to manually refresh the page or is there a built in way?2 Replies
1. Not sure why, but it doesn't work. I tried in nextjs and router router. Just use next navigation.
2. use router.refresh()
sign-out should automatically refresh the ui state. If it doesnt do that you can export refetch from authClient and use that instead of the router.refresh() which should be used in edge-cases