DirectAuthContinuation

Represents a state in the Direct Authentication flow where further action is required to proceed.

This is a special type of DirectAuthenticationState that indicates the flow is paused, pending input from the user or another client-side process.

In the case of a failure, the state will be an instance of DirectAuthenticationError. This can be an DirectAuthenticationError.HttpError for API-related issues (e.g., invalid credentials) or an DirectAuthenticationError.InternalError for unexpected client-side problems (e.g., network failures, response parsing errors).

Parameters

context

The DirectAuthenticationContext associated with this state.

mfaContext

An optional context for MFA flows, which may be present if the continuation is part of a multi-factor sequence.

Inheritors

Types

Link copied to clipboard

Represents a state where an out-of-band (OOB) challenge has been initiated, and the client must poll to determine the result.

Link copied to clipboard

A continuation that requires the user to enter a code, such as an OTP from an authenticator app or a code sent via email/SMS.

Link copied to clipboard

A continuation for an out-of-band (OOB) flow, where authentication happens on another device.

Link copied to clipboard

A continuation that requires a WebAuthn (passkey) challenge to be completed.