Skip to main content

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

const shouldDelete = await io.confirmIdentity("This is a sensitive action.");
interval.com

Props

gracePeriodMs

number Optional

This method 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?
On this page