mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
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:
2
jsonwebtoken/jsonwebtoken.d.ts
vendored
2
jsonwebtoken/jsonwebtoken.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user