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
- Python
const shouldDelete = await io.confirmIdentity("This is a sensitive action.");
const shouldDelete = await io.confirmIdentity("This is a sensitive action.");
should_delete = await io.confirm_identity("This is a sensitive action.")
interval.com
Props
- TypeScript
- JavaScript
- Python
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
grace_period
Optional
float
Calls to io.confirm_identity will not require authentication if the person running the action has just logged in or satisfied a previous io.confirm_identity call. This param configures the time period that a recent authentication should last, in seconds. Defaults to 300 (5 minutes).
Returns
bool
Was this section useful?