signOut in expo
I using
authClient.signOut()
in my auth but alway return notFound screen. How signOut works and what returns? How can i fix it?11 Replies
hmm? does it redirects you itself to a 404 screen?
yes
unless you have some logic redirecting based on the user session, signOut by itself doesn't cause any kind of navigation.
I have redirect to
/login
after logout but i got notFoundcheck where it's after the redirect. Better Auth doesn't redirect it to the 404 page by itself.
@bekacru have you seen this?
yeah so it redirected to /login? right?
at start to notFound after interaction (click) to login
hmm yeah that might have something to do with how you're doing the routing. maybe (public)/login and /login are different. but pretty sure, it's nothing related to how better auth interacts with expo.
thanks, i fixed, it was invalid route
(public)/login
not /login