-
-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Error: Not authenticated. when signing out. #3607
Comments
v1.0.0-beta.10 is outdated. please try the latest version |
I just installed using npm init @logto@latest and still getting the same error. |
It really throws an error. I use it with Vue and in the devtools console instead of getting a warning or a simple log, it actually throws an error. Edit: better grammar |
I think the problem is on the "push", try using "window.location.assign": |
OK, I can reproduce this error, taking a look. |
Fixed by logto-io/js#474 |
Describe the bug
When signing out after a successful sign in, the app throws the following error: "[Error]: Not authenticated."
Expected behavior
Should clear cookie and redirect to redirect_uri
How to reproduce?
Just by simply calling signout route: e.g:
const signOut = () => { push('/api/logto/sign-out'); };
Context
OS:
MacOs, Local.
Environment: Dev
Logto version:
1.0.0-beta.10
Node version: 18.12.0
Postgres version: 14
Command of starting Logto: npm run dev
The text was updated successfully, but these errors were encountered: