Skip to main content

isLocked

@webda/auth


Function: isLocked()

isLocked(s, failedBefore, lockoutMs, now?): boolean

Defined in: packages/auth/src/throttle.ts:16

Check if an ident is locked due to too many failed logins

Parameters​

s​

LoginAttempts

login failure state (an ident)

failedBefore​

number

failures before locking

lockoutMs​

number

lock duration after the last attempt

now?​

number = ...

clock

Returns​

boolean

true while locked