© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
7 replies
DanM

Server auth without setAuth

I have been trying to follow some examples of how to use supabase on the server for remix. To be clear I want to query as the user to take advantage of RLS. I’m able to log in fine and put the tokens in a cookie with no problem. The issue comes when trying to use the tokens to query the database. All the examples I find say to pass the token to the setAuth function and then query like you would on the client. The issue it that setAuth is not included in supabase-js v2. Am I missing it somewhere? I tried using set session and it gave me back a good response but the queries still don’t work. I’m really stuck on this hoping anyone has any suggestions.
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

Please bring `auth.setAuth` back
SupabaseSSupabase / help-and-questions
4y ago
Security implications of auth.setAuth
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth without middleware
SupabaseSSupabase / help-and-questions
4mo ago
supabase.auth.setAuth(token) deprecated, docs deleted, no way to find alternative
SupabaseSSupabase / help-and-questions
4y ago