mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Added options parameters to decode method of jsonwebtoken
Added options parameters to decode method of jsonwebtoken
This commit is contained in:
1 parent
44c9273e1e
commit
8d9e2d7993
2 files changed
+13
-1
No files matched your search
@@ -74,3 +74,9 @@ jwt.verify(token, cert, { ignoreExpiration: true }, function(err, decoded) {
|
||||
* https://github.com/auth0/node-jsonwebtoken#jwtdecodetoken
|
||||
*/
|
||||
var decoded = jwt.decode(token);
|
||||
|
||||
decoded = jwt.decode(token, { complete: false });
|
||||
|
||||
decoded = jwt.decode(token, { json: false });
|
||||
|
||||
decoded = jwt.decode(token, { complete: false, json: false });
|
||||
Reference in new issue
Block a user