Skip to content

supabase-js 2.0rc4 - "This endpoint requires a Bearer token" calling signOut() #530

@howesteve

Description

@howesteve

Hello,

I'm already using version 2.0.0-rc.4. So in the code below, user is signed in (100% sure), and when I call signOut():

const { error } = await supabase.auth.signOut();
console.log(error.message);

... the following error is thrown in the chrome debug console:

helpers.ts:40          GET https://xxxxxxxxxxxxxx.supabase.co/auth/v1/user 401
common.ts:91 AuthApiError: This endpoint requires a Bearer token
    at fetch.ts:36:16

Anyway, even after the error message, the session is successfully closed. This was working fine on the 1.x branch. What am I doing wrong?

Thanks

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions