Interface OtpEnrollmentResponse

Response when enrolling an OTP authenticator

interface OtpEnrollmentResponse {
    authenticatorType: "otp";
    barcodeUri: string;
    id?: string;
    recoveryCodes?: string[];
    secret: string;
}

Properties

authenticatorType: "otp"

Authenticator type

barcodeUri: string

URI for generating QR code (otpauth://...)

id?: string

Authenticator ID

recoveryCodes?: string[]

Recovery codes for account recovery

secret: string

Base32-encoded secret for TOTP generation