AuthApiError: Error logging out user
See original GitHub issueBug 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:
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:
- Created a year ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Resolved!
2.0.4