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<ArrayBufferLike> | () => Uint8Array

      the optional nkey seed

    Returns Authenticator