Decodes the token using the specified secret and algorithm
Decodes the token using the specified secret and algorithm
the given token to decode
the given secret
if true, decode without verify the signature of the token
The supported algorithms for encoding and decoding are HS256, HS384, HS512 and RS256.
jwt.decode(token, secret, true)
Decodes the token using the specified secret and algorithm
Decodes the token using the specified secret and algorithm
the given token to decode
the given secret
if true, decode without verify the signature of the token
jwt.decode(token, secret, true)
Decodes the token using the specified secret
Decodes the token using the specified secret
the given token to decode
the given secret
jwt.decode(token, secret)
Encodes the payload using the specified secret and algorithm
Encodes the payload using the specified secret and algorithm
the given payload to encode
the given secret
The supported algorithms for encoding and decoding are HS256, HS384, HS512 and RS256.
jwt.encode(payload, secret, "HS512")
Encodes the payload using the specified secret
Encodes the payload using the specified secret
the given payload to encode
the given secret
jwt.encode(payload, secret)
jwt-simple - JWT(JSON Web Token) encode and decode module
0.5.0
https://www.npmjs.com/package/jwt-simple