• Create the token, assign an expiry date, and sign it

    Parameters

    • Optional payload: JwtPayload

      JWT payload to be included in the token

    • Optional shouldNotExpire: boolean
    • Optional expiration: string

      Offset-based expiration. If not provided, defaults to 2 days.

    Returns string

    Signed JWT token, to be returned to the user.

Generated using TypeDoc