expiresInMinutes is deprecated, use expiresIn instead

This commit is contained in:
Paldom
2015-11-25 13:35:58 +01:00
parent 36c6ce86fb
commit c6820e3980
+7 -1
View File
@@ -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 {