# New Supabase SDK 2 - Logout all other Users

**URL:** <https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452>\
**Category:** How do I?\
**Tags:** authentication, supabase\
**Created:** [January 17, 2024, 4:45pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452 "2024-01-17T16:45:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tillyboard](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/tillyboard/32/3317_2.png) [@tillyboard](https://community.weweb.io/u/tillyboard)\
**Post date:** [January 17, 2024, 4:45pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/1 "2024-01-17T16:45:32Z")

</div>

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

```auto
const { error } = await
wwLib.wwPlugins.supabaseAuth.signOut({scope: 'others'})

```

 ![Bildschirmfoto 2024-01-17 um 17.46.05](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/3ed3720fc19b3510a07af8ccee0f7f27bf9758a8.png)

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [January 17, 2024, 4:56pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/2 "2024-01-17T16:56:18Z")

</div>

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

```auto
wwLib.wwPlugins.supabaseAuth.publicInstance.auth.signOut({scope: 'others'})

```

Edit: Missed the .auth as Broberto said

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 17, 2024, 4:56pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/3 "2024-01-17T16:56:20Z")

</div>

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

```auto
wwLib.wwPlugins.supabaseAuth.publicInstance.auth.signOut({scope: 'others'})

```

---

<div class="post-metadata">

**Author:** ![tillyboard](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/tillyboard/32/3317_2.png) [@tillyboard](https://community.weweb.io/u/tillyboard)\
**Post date:** [January 17, 2024, 6:59pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/4 "2024-01-17T18:59:27Z")

</div>

thanks! i tried it but doesn’t work ;-(

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 17, 2024, 7:32pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/5 "2024-01-17T19:32:59Z")

</div>

Might be a WeWeb bug? I found some threads on GitHub. @Alexis

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [January 18, 2024, 9:30am UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/6 "2024-01-18T09:30:25Z")

</div>

> [@Alexis](#):
>
> 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.

As I said, ask directly supabase I guess

---

<div class="post-metadata">

**Author:** ![kjb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kjb/32/11200_2.png) [@kjb](https://community.weweb.io/u/kjb)\
**Post date:** [November 1, 2024, 12:01pm UTC](https://community.weweb.io/t/new-supabase-sdk-2-logout-all-other-users/6452/7 "2024-11-01T12:01:26Z")

</div>

Have you gotten any updates on this feature since January? 🙂 I’d be interested in whether this is now possible
