Skip to main content
Big news! Interval has been acquired by Meter. Learn more →

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

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

Did this section clearly explain what you wanted to learn?
On this page