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

isAuthenticated is always false #63

Closed
ryanrawlingswang opened this issue Jul 9, 2020 · 5 comments
Closed

isAuthenticated is always false #63

ryanrawlingswang opened this issue Jul 9, 2020 · 5 comments

Comments

@ryanrawlingswang
Copy link

Hello, I am following the 'React: Login" quickstart (https://auth0.com/docs/quickstart/spa/react/01-login#install-the-auth0-react-sdk) to implement auth0 into one of my projects. However, isAuthenticated remains false after logging in, both following the specific quickstart tutorial and when trying to utilize it elsewhere (see code snippet below).

https://github.com/ryanKrumbholz/qwik/blob/60dd026f16a91872181ce23f7a7a3c11cb1a0dc2/packages/qwik-client/qwik-client/src/components/AuthenticatedRoute/AuthenticatedRoute.tsx#L2-L10

Using v1.0.0

@adamjmcgrath
Copy link
Contributor

Hi @ryanKrumbholz - thanks for raising this

I've run your application and it looks like you're getting 401's from the /oauth/token endpoint. Can you check that your Auth0 Application in your dashboard is set to "Single Page Application".

And if it is, can you follow the steps in #49 (comment) and let me know if that resolves your issue?

@ryanrawlingswang
Copy link
Author

That worked, thanks!

@adamjmcgrath
Copy link
Contributor

Great, thanks for letting me know - just to confirm, was your tenant already configured to "Single Page Application", and you had to toggle away and back again, or was it configured to something else?

@ryanrawlingswang
Copy link
Author

Correct, my tenant was already configured to SPA and I had to toggle it away and back.

@adamjmcgrath
Copy link
Contributor

Thanks for confirming, I'll raise this issue internally

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