v6
·
4 commits
to master
since this release
public static async create
(
bitSize: number = TOKEN_DEFAULT_BITSIZE,
baseEncoding: string = UIDGenerator.BASE58,
expiry: number|undefined = ( Date.now() + TOKEN_DEFAULT_EXPIRY * 60 * 1000 )
):Promise<Token>The parameter expiry should accept null instead of undefined.