videosphere
    Preparing search index...

    Function createTotpTrustToken

    • Creates a signed JWT for the TOTP "remember this device" trust cookie.

      Parameters

      • userId: string

        User id to bind to the trust token.

      • maxAgeSeconds: number

        Cookie lifetime in seconds.

      Returns Promise<string>

      Signed JWT with purpose: 'totp-trust'.