Skip to content

problem migrating from older jwt-go #374

Closed Answered by oxisto
ondbyte asked this question in Q&A
Discussion options

You must be logged in to vote

First of all: Thanks for upgrading from a "legacy" version to our current version. We know there are still a lot of users out there with the old library and the more we can switch over to the newer versions the better. There are several things to consider here.

  1. We not only changed the signature on the Verify function from []byte to string, but also the "contents". Previously, it held the base64 content of the token signature, which each signature method needed to decode. This was not a good approach and we changed it so that base64-decoding now is done in Parse, and Verify only gets the raw cryptographic signature. This is also why signature verification fails, if you supply it with the…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ondbyte
Comment options

Comment options

You must be logged in to vote
1 reply
@ondbyte
Comment options

Answer selected by oxisto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants