mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
expiresInMinutes is deprecated, use expiresIn instead
This commit is contained in:
Vendored
+7
-1
@@ -22,8 +22,13 @@ declare module "jsonwebtoken" {
|
||||
* - none: No digital signature or MAC value included
|
||||
*/
|
||||
algorithm?: string;
|
||||
/** @member {number} - Lifetime for the token in minutes */
|
||||
/**
|
||||
*@deprecated - see expiresIn
|
||||
*@member {number} - Lifetime for the token in minutes
|
||||
*/
|
||||
expiresInMinutes?: number;
|
||||
/** @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"` */
|
||||
expiresIn?: string;
|
||||
audience?: string;
|
||||
subject?: string;
|
||||
issuer?: string;
|
||||
@@ -33,6 +38,7 @@ declare module "jsonwebtoken" {
|
||||
export interface VerifyOptions {
|
||||
audience?: string;
|
||||
issuer?: string;
|
||||
maxAge?: string;
|
||||
}
|
||||
|
||||
export interface VerifyCallbak {
|
||||
|
||||
Reference in New Issue
Block a user