Skip to content
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

Closed
JMedina90 opened this issue Mar 24, 2023 · 6 comments
Closed

bug: Error: Not authenticated. when signing out. #3607

JMedina90 opened this issue Mar 24, 2023 · 6 comments
Assignees
Labels
pending-verification Something is still under investigation

Comments

@JMedina90
Copy link

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

@JMedina90 JMedina90 added the bug Something isn't working label Mar 24, 2023
@gao-sun
Copy link
Member

gao-sun commented Mar 25, 2023

v1.0.0-beta.10 is outdated. please try the latest version

@gao-sun gao-sun added pending-verification Something is still under investigation and removed bug Something isn't working labels Mar 25, 2023
@JMedina90
Copy link
Author

I just installed using npm init @logto@latest and still getting the same error.

image

@italo91206
Copy link

italo91206 commented Apr 4, 2023

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

@wangsijie
Copy link
Contributor

I think the problem is on the "push", try using "window.location.assign":

https://github.com/logto-io/js/blob/b6957f8b99809ddad8b483d4d069578208234271/packages/next-sample/pages/index.tsx#L78

@wangsijie
Copy link
Contributor

OK, I can reproduce this error, taking a look.

@wangsijie
Copy link
Contributor

Fixed by logto-io/js#474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification Something is still under investigation
Development

No branches or pull requests

4 participants