PrimaryFactor

sealed interface PrimaryFactor

Represents an authentication factor used in a Direct Authentication flow.

Factors are categorized as either Primary or Secondary to support multi-stage authentication workflows.

Inheritors

Types

Link copied to clipboard
data class Oob(val channel: OobChannel) : SecondaryFactor

An OOB (Out-of-Band) factor, such as a push notification.

Link copied to clipboard
data class Otp(val passCode: String) : SecondaryFactor

An OTP (One-Time Passcode) factor.

Link copied to clipboard
data class Password(val password: String) : PrimaryFactor

A password factor, which can only be used as a primary factor.

Link copied to clipboard

A WebAuthn factor, used for phishing-resistant authentication with hardware authenticators or biometrics.