© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
3 replies
loup

Hide warning getSession warning in supabase-js ?

🟡javascript
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.
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
proxy.ts
(
middleware.ts
middleware.ts
) which protect the session but all my logs contains this soo...
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Question about Supabase gotrue-js lock warning
SupabaseSSupabase / help-and-questions
3w ago
Supabase Auth UI provider warning
SupabaseSSupabase / help-and-questions
4y ago
Supabase JS help
SupabaseSSupabase / help-and-questions
4y ago
getSession in “use client”
SupabaseSSupabase / help-and-questions
3y ago