Skip to content

supabase.auth.getSession insecure warning on the server #32917

Answered by GaryAustin1
lorikku asked this question in Questions
Discussion options

You must be logged in to vote

This is the best discussion on it. https://github.com/orgs/supabase/discussions/23224

If you rely on RLS and not your server then you can generally pass on the session and RLS will protect you.
If you use on the server then you need getUser or to decode the JWT yourself with the JWT secret to insure it is valid. They are working on a new JWT method mentioned in that link to make the decode easier.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lorikku
Comment options

@GaryAustin1
Comment options

@lorikku
Comment options

@GaryAustin1
Comment options

@lorikku
Comment options

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