Joshua Perk
PD🧩 Plasmo Developers
•Created by Joshua Perk on 7/13/2023 in #👟framework
Plasmo requesting more permissions than requested?
11 replies
PD🧩 Plasmo Developers
•Created by Joshua Perk on 7/12/2023 in #👟framework
Persist Supabase auth session/user state
I'm really struggling to figure out how to persist a login state with my extension - I'm using Supabase and Vue (so unfortunately I can't use the boilerplate code exactly - with the user state watcher).
I've noticed a few things:
- State doesn't carry over between tabs (neither existing nor new ones)
- It seems as though, state is "locked" to the parent domain, I login in on - ie. I'm logging the user in within a CSUI and if it happens to be overlayed on linkedin, the logged in state will be recognized when I return to that domain but not others
- My web app also uses Supabase auth and it seems the states sort of interact with each other but not predictably - ideally I wouldn't use the extension to login at all. I'd have the user login to the web app and share that auth with the extension
- The boiler plate example sends state to a BGSW. I'm not sure if this is needed to persist state or just an example of how it can be done?
- When I've made calls from the BGSW it almost seems like a different session state (often results in "user not found")
I'm all out of wack here and feel like I'm randomly throwing a bunch of
storage
and setSession
calls hoping something will magically work 😆12 replies