Function jwtAuthenticator

  • Returns an Authenticator function that returns a JwtAuth. If a seed is provided, the public key, and signature are calculated.

    Parameters

    • ajwt: string | (() => string)

      the jwt

    • Optionalseed: Uint8Array | (() => Uint8Array)

      the optional nkey seed

    Returns Authenticator