dwyl / learn-json-web-tokens

:closed_lock_with_key: Learn how to use JSON Web Token (JWT) to secure your next Web App! (Tutorial/Example with Tests!!)
MIT License
4.18k stars 254 forks source link

JWT is coupled with json 9.0.0 and not higher #103

Closed KumarS-Naveen closed 5 years ago

KumarS-Naveen commented 5 years ago

Hello Guys ,

I have installed JWT 4.0.0 version and json version 12.0.1 , but while validating tokens i am getting error saying it needs json version 9.0.0 even though i have higher version (12.0.1)

Please let me know for the solutions

nelsonic commented 5 years ago

@IAm-Naveen are you referring to the jsonwebtoken module? https://github.com/dwyl/learn-json-web-tokens/blob/8cd60a592bf1b2ce2415e6b800db895db8dd9b63/package.json#L31-L34

https://www.npmjs.com/package/jsonwebtoken 8.4.0 is the latest version. image

Please stick to the dependencies listed in the package.json file when following this tutorial. The json module https://www.npmjs.com/package/json is not relevant as JavaScript has built-in support for JSON encoding/decoding.

KumarS-Naveen commented 5 years ago

I am using JWT in c#

nelsonic commented 5 years ago

@IAm-Naveen if you are writing C#, you aren't following this example/tutorial. Therefore you should consider opening this issue on the appropriate C# GitHub repository.