Options
All
  • Public
  • Public/Protected
  • All
Menu

Module authentication/steps/challenge-response-step

Type aliases

ChallengeResponseValidator

ChallengeResponseValidator: function

Validates challenge-response nonce.

param

Public key from AccountModel.pubKey.

param

Plaintext nonce sent to client.

param

Encrypted nonce sent by client.

param

nonce signing algorithm used by client.

param

nonce signing encoding used by client.

returns

Whether nonce sent by client matches the one that was sent by server to him.

Type declaration

    • (pubKey: string | Buffer, nonce: string, signature: string | Buffer, signAlgorithm: string, encoding: BinaryToTextEncoding): Promise<boolean>
    • Parameters

      • pubKey: string | Buffer
      • nonce: string
      • signature: string | Buffer
      • signAlgorithm: string
      • encoding: BinaryToTextEncoding

      Returns Promise<boolean>