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

Can't verify external tokens #15

Closed
badoge opened this issue Jun 4, 2022 · 1 comment · Fixed by #16
Closed

Can't verify external tokens #15

badoge opened this issue Jun 4, 2022 · 1 comment · Fixed by #16

Comments

@badoge
Copy link
Contributor

badoge commented Jun 4, 2022

jwt.verify always returns false when I try to verify tokens I receive from Twitch.
Also when I try to send a request to the Twitch API it returns an error saying it could not verify the token generated by jwt.sign

I think Twitch is expecting a token signed with a base64 encoded secret but when I decode the tokens generated by jwt.sign it doesn't seem be using a base64 encoded secret.

@tsndr
Copy link
Owner

tsndr commented Jun 4, 2022

Should be fixed with v1.3.1.

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

Successfully merging a pull request may close this issue.

2 participants