codeAt: (
secret: unknown,
counter: number,
opts?: { algorithm?: string; digits?: string | number },
) => string = ...
Type Declaration
-
- (
secret: unknown,
counter: number,
opts?: { algorithm?: string; digits?: string | number },
): string
-
Parameters
- secret: unknown
- counter: number
Optionalopts: { algorithm?: string; digits?: string | number }
Returns string
the code
The code for a secret at a counter; used by an enrolment confirmation and the tests, never to answer a request.