mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add test and related fix
This commit is contained in:
@@ -111,6 +111,10 @@ var decoded = jwt.decode(token);
|
||||
|
||||
decoded = jwt.decode(token, { complete: false });
|
||||
|
||||
if (decoded !== null && typeof decoded === "object") {
|
||||
console.log(decoded.foo);
|
||||
}
|
||||
|
||||
decoded = jwt.decode(token, { json: false });
|
||||
|
||||
decoded = jwt.decode(token, { complete: false, json: false });
|
||||
|
||||
Reference in New Issue
Block a user