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

Generating invalid tokens #42

Open
Hejtmus opened this issue Jul 4, 2024 · 2 comments
Open

Generating invalid tokens #42

Hejtmus opened this issue Jul 4, 2024 · 2 comments

Comments

@Hejtmus
Copy link

Hejtmus commented Jul 4, 2024

Hello,

when integrated this lib to project as stated in docs, which is pretty straight-forward, the lib generates token, which seems valid, and the lib seems to work flawlessly, but when verifying that code by auth0 lib, the Auth0 returns 401, saying that the code is invalid. After investigation with Auth0 support, we found out, that the problem is in this lib.
To be honest, I'm not especially familiar Auth0 API, and currently I don't have time to study it and debug it, so I could create PR, so at to prevent possible future repetitions of our situation.
Well, this lib is convenient to use, but in order to make our product work, we had to stick with the version from Auth0 official docs.

@jbreckmckye
Copy link
Owner

Hi - thanks for the error report.

Do you know any more details about what's wrong with the token? Are you essentially unable to auth with the library and your current Auth0 tenancy settings?

Right now my development machine is out of action, I might not be able to look into the problem immediately. However if you are able to write a pull request, it would definitely be welcome

@Hejtmus
Copy link
Author

Hejtmus commented Jul 11, 2024

Hey,

sorry for late response. For project on which I encountered that bug, I was working only on front-end, and validation of token using auth0 API was on BE, to which I don't have access but my coworker @simonSlamka does. I already asked him to share more info on that, so he'll probably comment on this issue.
From my side auth went smoothly, and even session renewal worked, but whenever there was call to some Auth0 endpoint with token from this lib, we got 401 (Simon will specify more exactly).
When I replaced your lib with template from Auth0 docs, the API no longer evaluated token as invalid.

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