SignOptions.expiresIn should be string or number (#8806)

* SignOptions.expiresIn should be any

https://github.com/rauchg/ms.js can take number or string

* expiresIn should be a string or a number
This commit is contained in:
Cluda
2016-05-21 17:26:05 +02:00
committed by Masahiro Wakame
parent 445ed7e54c
commit b76f5c0e57

View File

@@ -23,7 +23,7 @@ declare module "jsonwebtoken" {
*/
algorithm?: string;
/** @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;
expiresIn?: string | number;
notBefore?: string;
audience?: string;
subject?: string;