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

Invalid JWT token results in error object in callback as string rather than object #43

Open
JayCarney opened this issue Nov 13, 2020 · 3 comments

Comments

@JayCarney
Copy link

Not sure if this extends to other error cases, but when a malformed Bearer token is sent to .validate(token, callback), the error object passed to the callback is a string value of Not a valid JWT token

expected behaviour:

  • Invalid JWT token values result in an error object with keys name and message like other error objects
@BriantOliveira
Copy link

I'm currently having the same issue, I verified all my info and it's correct, Cognito region, pool id, and token user, but I'm still getting this issue.

@ss-vijayvavdiya
Copy link
Contributor

I have handled the error incase invalid jwt and made PR

@ss-vijayvavdiya
Copy link
Contributor

ss-vijayvavdiya commented Dec 11, 2023

@JayCarney
PR #70 is now merged. Can you please verify the issue and close it?

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

3 participants