io.confirmIdentity
Requests multi-factor authentication or password confirmation of the person running the action.
caution
io.confirmIdentity
is not supported within an io.group.
Usage
- TypeScript
- JavaScript
const shouldDelete = await io.confirmIdentity("This is a sensitive action.");
const shouldDelete = await io.confirmIdentity("This is a sensitive action.");
interval.com
Props
- TypeScript
- JavaScript
gracePeriodMs
Optional
number
io.confirmIdentity will not require authentication if the person running the action has just logged in or satisfied a previous io.confirmIdentity call. This param configures the time period that a recent authentication should last. Defaults to 300000 (5 minutes).
Returns
boolean
gracePeriodMs
Optional
number
io.confirmIdentity will not require authentication if the person running the action has just logged in or satisfied a previous io.confirmIdentity call. This param configures the time period that a recent authentication should last. Defaults to 300000 (5 minutes).
Returns
boolean
Was this section useful?