Skip to content

v6

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 27 Mar 04:37
· 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.