Syncing Supabase auth between web app & Chrome extension #791
Unanswered
robertsamarji
asked this question in
Q&A
Replies: 2 comments
-
Facing the same situation here. Any updates? Did you find a solution @robertsamarji ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yup same here. Have not been able to find a solution for this online so far |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm looking for help on how to keep user auth synced between my NextJs web app and Plasmo Chrome extension.
Background on the setup:
Great, so now the user has a shared session between the web app and the Chrome extension. This works fine.
PROBLEM - After an hour, the Supabase access token expires and it uses the long-lived refresh token to set a new session. If the web app refreshes the session, the extension attempts to use the old access / refresh token and the user ends up logged out on both and vice versa.
QUESTION - How do I keep the access / refresh tokens synced between the web app and chrome extension so this doesn't happen?
Possible solutions I'm thinking are:
Does anyone have any thoughts on these solutions above / solutions of their own?
Beta Was this translation helpful? Give feedback.
All reactions