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

Auth0: /authorize endpoint when not logged in #208

Open
headly48 opened this issue Jul 22, 2022 · 2 comments
Open

Auth0: /authorize endpoint when not logged in #208

headly48 opened this issue Jul 22, 2022 · 2 comments

Comments

@headly48
Copy link

Using the auth0-spa-js when calling the method getAccessTokenSilently while not logged in the simulation server responds with "server error" and a http status of 500.

This causes the promise returned from getAccessTokenSilently to never be resolved.

When calling the real Auth0 in this scenario the endpoint returns a http status of 200 and getAccessTokenSilently promise is rejected with the error

error: "login_required" error_description: "Login required" message: "Login required"

@headly48
Copy link
Author

The Server Error seems to be originating from the web-message handler where it checks if the session contains a username.

@dagda1
Copy link
Contributor

dagda1 commented Jul 26, 2022

@headly48 thanks for bringing this up.

Do you have any code you can share about how you got to the point where getAccessTokenSilently is called while not authenticated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants