Sign out after revoking current session
After revoking the current session,
getSessionCookie
in the middleware still return a value so it's act like the user is signed in. How can I prevent this ?3 Replies
Try using .signOut instead.
You may also have cookie cache enabled which could be why.
This will only work for the current session.
I've just tried disabling session cache and got the same result.
it might be becasue of cookie is not purged properly during revoke ? have u checked that