question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AuthApiError: Error logging out user

See original GitHub issue

Bug report

I am getting AuthApiError: Error logging out user when attempting to invoke a signOut() method

Describe the bug

Here is a snippet of the code I’m running:

                  <Menu.Item
                    onClick={async () => {
                      if (ctx) {
                        const { error } = await ctx.supabase.auth.signOut();
                        if (error) {
                          console.log(error);
                        } else {
                          document.location.assign(routes.signIn);
                        }
                      }
                    }}
                  >
                    <Text>Sign out</Text>
                  </Menu.Item>

This is a menu item that invokes supabase.auth.signOut(). It worked before. But recently it started producing an error: image

To Reproduce

Use supabase.auth.signOut() and observe 500s in the network tab.

Expected behavior

It should sign the user out.

System information

MacOS 12.5.1, Chrome 105.0.5195.125

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brykovcommented, Oct 29, 2022

Resolved!

0reactions
brykovcommented, Oct 29, 2022

Hey @brykov — what version of supabase-js are you using?

2.0.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) AuthApiError - Not properly logging ...
It appears to be working on chrome, safari, and edge. What's happening is I logout, get redirected properly to my login screen, but...
Read more >
How to resolve a CORS error on OKTA Hosted Signout
I cloned the OKTA example code down, and hard-coded in my application details. Login/Logout works just fine on the demo app. When I...
Read more >
Error: AuthApiError · Issue #109 · okta/okta-react - GitHub
Hi all our portals started to get this error: Error: AuthApiError . This started to happen after easter time. The solution is to...
Read more >
Okta API Error Codes | Okta Developer
Here you can find further information about the errors that the Okta API returns, sorted by error code and HTTP return code.
Read more >
Supabase Auth with SvelteKit
Convenience helpers for implementing user authentication in SvelteKit. ... In order to get the most out of TypeScript and it´s intellisense, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found