Hiyve Components - v1.0.0
    Preparing search index...

    Interface TfaRequiredEvent

    Emitted when two-factor authentication is required after login.

    The methods array indicates which verification methods are available (e.g., ['email_otp']). Use verifyTfa() with the user-provided code to complete authentication.

    interface TfaRequiredEvent {
        challengeToken: string;
        expiresIn: number;
        methods: string[];
        user: { email: string; id: string; name?: string };
    }
    Index

    Properties

    challengeToken: string

    Server-issued challenge token for the TFA session

    expiresIn: number

    Seconds until the challenge expires

    methods: string[]

    Available TFA methods (e.g., ['email_otp'])

    user: { email: string; id: string; name?: string }

    Partial user info for display during verification