Closed stenio123 closed 8 years ago
Thank you for the great code!
I have a question - the returning token contains the username and the 'extra' field. However since they seem to be encrypted, how will my client decrypt that without including the secret on the client side?
Thank you!
Got it! From the issues of "express-jwt":
the token payload is not encrypted just base64-url encoded and digital signed.
I just needed to use the jwt-decode module on the client side to decode. Thank you!
Thank you for the great code!
I have a question - the returning token contains the username and the 'extra' field. However since they seem to be encrypted, how will my client decrypt that without including the secret on the client side?
Thank you!