PermanentLockOptions
Properties
Section titled “Properties”afterLocks
Section titled “afterLocks”
readonlyafterLocks:number
How many temporary locks in a row (each within quietPeriod of the last,
with no completed sign-in or password reset between; a correct password
with a second factor still owed does not count as one) an account may
take, password and second-factor locks alike: the next lock is
permanent. At least 1.
trustedDevices?
Section titled “trustedDevices?”
readonlyoptionaltrustedDevices?:boolean
Default true: the owner’s trusted-device cookie still lets a correct
password through a permanent lock, with the same device budgets as under
a temporary one, so an attacker can lock out everyone but the owner on a
device they signed in from. The lock deletes the account’s sessions but
keeps the device cookies; sessions from a device sign-in may
reauthenticate and change the password, but no session may change the
email until an admin clears the lock. Other ways in still mint a session,
each needing a correct password or the app’s SSO: an app’s SSO through
issueSession, a two-factor challenge started before the lock, and a
login racing the revocation.
False: the lock holds against every login. It bumps the revocation epoch (ending every session and device cookie), and refuses every session door (issuing a session by any path, validating one, reauthentication, password change, email change, email verification) until an admin clears it.