Skip to content

bug(gotrue): stateless SignOut can only log out globally #440

Description

@fresh55

Ran into this signing users out server-side. I wanted local and there's no way to ask for it.

await client.SignOut(accessToken, options);
// POST /logout?scope=global

StatelessClient.SignOut calls Api.SignOut(accessToken) with no scope, and Api.SignOut always writes ?scope= from its default. The stateful Client.SignOut(SignOutScope) takes one.

#148 closed as "Available in >= Supabase.Gotrue@5.0.6" but missed the stateless client, and its doc still says "This will revoke all refresh tokens for the user."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions