© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
21 replies
Homemadesteam58

JS Client Error 'AuthSessionMissingError' when using setSession()

I am having some trouble trying use the
setSession()
setSession()
method on the JS client.
I am passing it an
access_token
access_token
or a
refresh_token
refresh_token
, I've tried both, and it accepts neither with the error,
AuthSessionMissingError
AuthSessionMissingError
.

I have attached a screenshot of the error from my console but I can't work out how to fix it. I've been through the source code and that hasn't helped either.

Any help would be very much appreciated.
unknown.png
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

400 - AuthSessionMissingError: Auth session missing
SupabaseSSupabase / help-and-questions
5mo ago
Missing sub claim when try to getUser after setSession
SupabaseSSupabase / help-and-questions
4y ago
Error 504 when trying to send password reset email - JS Client
SupabaseSSupabase / help-and-questions
4mo ago
Get 503 Error using supababase-js
SupabaseSSupabase / help-and-questions
2w ago