Anybody know how to log out from a protected route...
# help
d
Anybody know how to log out from a protected route? If I use the normal supabase.auth.signOut() I can still access the protected route 🤔
s
Yes the signOut function will log you out of Supabase, you being able to still access the protected route sounds more like a application logic issue.
You can take a look at this project to see how they go about managing this https://github.com/richiemcilroy/feature
m
with nextjs maybe this will come in handy : https://blog.imjulian.com/nextshield-supabase