SupabaseS
Supabase2w ago
loup

Hide warning getSession warning in supabase-js ?

Hi ! Is there any way to hide this warning :
web-1  | Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.

Because Im using in NextJS a proxy.ts (middleware.ts) which protect the session but all my logs contains this soo...
Was this page helpful?