@nats-io/nats-core
    Preparing search index...

    Function credsAuthenticator

    • Returns an Authenticator function that returns a JwtAuth. This is a convenience Authenticator that parses the specified creds and delegates to the jwtAuthenticator.

      Parameters

      • creds: Uint8Array<ArrayBufferLike> | (() => Uint8Array)

        the contents of a creds file or a function that returns the creds

      Returns Authenticator