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.
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 byjwt.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.