Hey i have a short question to the Supabase SDK V2,
is it possible with the new Supabase SDK V2 update to sign out all other sessions of a user?
Am i doing someting wrong in the code? @Alexis
const { error } = await
wwLib.wwPlugins.supabaseAuth.signOut({scope: 'others'})
Alexis
2
Hi, I tried to implement this for the revamp but I’m pretty sure this feature cannot be used from a browser, I read it somewhere.
You can try to fix your code, it should be
wwLib.wwPlugins.supabaseAuth.publicInstance.auth.signOut({scope: 'others'})
Edit: Missed the .auth as Broberto said
2 Likes
You are missing the instance also, you need to use the publicInstance as @Alexis mentioned. Meaning, that is THE ISNTANCE, of the Supabase SDK
By the way, I think it is
wwLib.wwPlugins.supabaseAuth.publicInstance.auth.signOut({scope: 'others'})
2 Likes
thanks! i tried it but doesn’t work ;-(
Might be a WeWeb bug? I found some threads on GitHub. @Alexis
Alexis
6
As I said, ask directly supabase I guess
kjb
7
Have you gotten any updates on this feature since January? I’d be interested in whether this is now possible
1 Like