@types/jsonwebtoken
Advanced tools
Comparing version 8.5.3 to 8.5.4
@@ -54,29 +54,29 @@ // Type definitions for jsonwebtoken 8.5 | ||
*/ | ||
algorithm?: Algorithm; | ||
keyid?: string; | ||
algorithm?: Algorithm | undefined; | ||
keyid?: string | undefined; | ||
/** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */ | ||
expiresIn?: string | number; | ||
expiresIn?: string | number | undefined; | ||
/** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */ | ||
notBefore?: string | number; | ||
audience?: string | string[]; | ||
subject?: string; | ||
issuer?: string; | ||
jwtid?: string; | ||
mutatePayload?: boolean; | ||
noTimestamp?: boolean; | ||
header?: JwtHeader; | ||
encoding?: string; | ||
notBefore?: string | number | undefined; | ||
audience?: string | string[] | undefined; | ||
subject?: string | undefined; | ||
issuer?: string | undefined; | ||
jwtid?: string | undefined; | ||
mutatePayload?: boolean | undefined; | ||
noTimestamp?: boolean | undefined; | ||
header?: JwtHeader | undefined; | ||
encoding?: string | undefined; | ||
} | ||
export interface VerifyOptions { | ||
algorithms?: Algorithm[]; | ||
audience?: string | RegExp | Array<string | RegExp>; | ||
clockTimestamp?: number; | ||
clockTolerance?: number; | ||
algorithms?: Algorithm[] | undefined; | ||
audience?: string | RegExp | Array<string | RegExp> | undefined; | ||
clockTimestamp?: number | undefined; | ||
clockTolerance?: number | undefined; | ||
/** return an object with the decoded `{ payload, header, signature }` instead of only the usual content of the payload. */ | ||
complete?: boolean; | ||
issuer?: string | string[]; | ||
ignoreExpiration?: boolean; | ||
ignoreNotBefore?: boolean; | ||
jwtid?: string; | ||
complete?: boolean | undefined; | ||
issuer?: string | string[] | undefined; | ||
ignoreExpiration?: boolean | undefined; | ||
ignoreNotBefore?: boolean | undefined; | ||
jwtid?: string | undefined; | ||
/** | ||
@@ -86,4 +86,4 @@ * If you want to check `nonce` claim, provide a string value here. | ||
*/ | ||
nonce?: string; | ||
subject?: string; | ||
nonce?: string | undefined; | ||
subject?: string | undefined; | ||
/** | ||
@@ -93,8 +93,8 @@ * @deprecated | ||
*/ | ||
maxAge?: string; | ||
maxAge?: string | undefined; | ||
} | ||
export interface DecodeOptions { | ||
complete?: boolean; | ||
json?: boolean; | ||
complete?: boolean | undefined; | ||
json?: boolean | undefined; | ||
} | ||
@@ -117,11 +117,11 @@ export type VerifyErrors = | ||
alg: string | Algorithm; | ||
typ?: string; | ||
cty?: string; | ||
crit?: Array<string | Exclude<keyof JwtHeader, 'crit'>>; | ||
kid?: string; | ||
jku?: string; | ||
x5u?: string | string[]; | ||
'x5t#S256'?: string; | ||
x5t?: string; | ||
x5c?: string | string[]; | ||
typ?: string | undefined; | ||
cty?: string | undefined; | ||
crit?: Array<string | Exclude<keyof JwtHeader, 'crit'>> | undefined; | ||
kid?: string | undefined; | ||
jku?: string | undefined; | ||
x5u?: string | string[] | undefined; | ||
'x5t#S256'?: string | undefined; | ||
x5t?: string | undefined; | ||
x5c?: string | string[] | undefined; | ||
} | ||
@@ -132,9 +132,9 @@ | ||
[key: string]: any; | ||
iss?: string; | ||
sub?: string; | ||
aud?: string | string[]; | ||
exp?: number; | ||
nbf?: number; | ||
iat?: number; | ||
jti?: string; | ||
iss?: string | undefined; | ||
sub?: string | undefined; | ||
aud?: string | string[] | undefined; | ||
exp?: number | undefined; | ||
nbf?: number | undefined; | ||
iat?: number | undefined; | ||
jti?: string | undefined; | ||
} | ||
@@ -141,0 +141,0 @@ |
{ | ||
"name": "@types/jsonwebtoken", | ||
"version": "8.5.3", | ||
"version": "8.5.4", | ||
"description": "TypeScript definitions for jsonwebtoken", | ||
@@ -80,4 +80,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonwebtoken", | ||
}, | ||
"typesPublisherContentHash": "f7c7cdfc98843f26ff144d78f1d04ce72ff7e1438cb2c14670085dd4ddcd603d", | ||
"typesPublisherContentHash": "58925f3bde0aa9e2a8a501c23b2e2c764ea25d09e5a171b8ed259b5a4d0038ef", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 01 Jul 2021 16:31:25 GMT | ||
* Last updated: Tue, 06 Jul 2021 21:33:49 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
13452