Interface ServerChallenge<State>

Server side of a challenge.

interface ServerChallenge<State> {
    challengeId: string;
    process: ((request, context) => Promise<ServerChallengeResponse>);
    retryLimit: number;
    timeLimit: number;
}

Type Parameters

  • State = any

Implemented by

Properties

challengeId: string

Challenge module identifier.

process: ((request, context) => Promise<ServerChallengeResponse>)

Process selection or continuation of the challenge.

Type declaration

retryLimit: number

Retry limit, including the initial attempt.

timeLimit: number

Time limit, in milliseconds.

Generated using TypeDoc