jbreckmckye / electron-auth0-login

Helper widget for Auth0 authentication in Electron desktop apps
MIT License
27 stars 19 forks source link

Generating invalid tokens #42

Open Hejtmus opened 4 days ago

Hejtmus commented 4 days ago

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 commented 3 days ago

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