© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
57 replies
Igor

How to refresh the session with no access to `refresh_token`?

So in my web app where supabase client is initiated I have an
/upload
/upload
API that expects a bearer token and then makes a supabase query.

Chrome extension makes a request to that endpoint while taking the bearer from the browser cookie.

But unless user goes to the web app to trigger
getSession()
getSession()
updating the access token, token expires so the reqeust fails.

How could I update the token in the cookie while the extension makes the request? Reason I mentioned
refresh_token
refresh_token
is because I was trying to fit in the https://supabase.com/docs/reference/javascript/auth-refreshsession?example=refresh-session-using-a-passed-in-session, but don't think that's possible via the API endpoint anyway without visiting the client.
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
Next page

Similar Threads

How to refresh access token using refresh token in supabase c# api?
SupabaseSSupabase / help-and-questions
4mo ago
Help with session - I can't get the refresh_token
SupabaseSSupabase / help-and-questions
4y ago
sb-access-token,sb-refresh-token VS supabase-auth-token?
SupabaseSSupabase / help-and-questions
4y ago
Login by JWT Token (Access Token, Refresh Token) in Dart / Flutter
SupabaseSSupabase / help-and-questions
8mo ago