recordRotated: (
username: unknown,
previousHash: string,
expires: number,
rotatedAt: string,
) => boolean = ...
Type Declaration
-
- (
username: unknown,
previousHash: string,
expires: number,
rotatedAt: string,
): boolean
-
Parameters
- username: unknown
- previousHash: string
- expires: number
- rotatedAt: string
Returns boolean
whether it was written
Records a rotation that was committed: the previous hash kept until
expires, the time, and the failure count reset.