Skip to content

Do i need to logout from supabase sdk? #10

Answered by rphlmr
niklasgrewe asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks 🙏

In my stack I use supabase sdk with service role (full power, bypass RLS).
It's one super instance for all requests, assuming that developers handle security check (who can access what, and doesn't rely on RLS features).

So, user is not linked to supabase and we don't need to use supabase's logout function.

The user session lives in session cookie. So removing it (Remix side) will logout user.
It works only because this stack provides ways to assert that a user is logged (read cookie and challenge tokens)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@niklasgrewe
Comment options

@rphlmr
Comment options

@niklasgrewe
Comment options

@rphlmr
Comment options

Answer selected by niklasgrewe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants