Join Discord
Powered by
Anybody know how to log out from a protected route...
# help
d
dcuk89
12/13/2021, 11:04 AM
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
silentworks
12/13/2021, 11:53 AM
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.
silentworks
12/13/2021, 11:56 AM
You can take a look at this project to see how they go about managing this
https://github.com/richiemcilroy/feature
m
Mihai
12/13/2021, 12:31 PM
with nextjs maybe this will come in handy :
https://blog.imjulian.com/nextshield-supabase
Previous
Next