Skip to content

Commit c6820e3

Browse files
committed
expiresInMinutes is deprecated, use expiresIn instead
1 parent 36c6ce8 commit c6820e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jsonwebtoken/jsonwebtoken.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ declare module "jsonwebtoken" {
2222
* - none: No digital signature or MAC value included
2323
*/
2424
algorithm?: string;
25-
/** @member {number} - Lifetime for the token in minutes */
25+
/**
26+
*@deprecated - see expiresIn
27+
*@member {number} - Lifetime for the token in minutes
28+
*/
2629
expiresInMinutes?: number;
30+
/** @member {string} - Lifetime for the token expressed in a string describing a time span [rauchg/ms](https://github.com/rauchg/ms.js). Eg: `60`, `"2 days"`, `"10h"`, `"7d"` */
31+
expiresIn?: string;
2732
audience?: string;
2833
subject?: string;
2934
issuer?: string;
@@ -33,6 +38,7 @@ declare module "jsonwebtoken" {
3338
export interface VerifyOptions {
3439
audience?: string;
3540
issuer?: string;
41+
maxAge?: string;
3642
}
3743

3844
export interface VerifyCallbak {

0 commit comments

Comments
 (0)