TESSA Web API
    Preparing search index...

    Interface ITwoFactorAuthService

    Service for interacting with two-factor authentication.

    interface ITwoFactorAuthService {
        check(
            id: string,
            typeId: string,
            info: IStorage,
        ): Promise<ISessionResult>;
        command(
            id: string,
            typeId: string,
            info: IStorage,
        ): Promise<TwoFactorAuthResult>;
        restart(
            id: string,
            typeId: string,
            info: IStorage,
        ): Promise<TwoFactorAuthResult>;
    }

    Implemented by

    Index

    Methods

    • Process check request at 2FA session with info for login attempt with identifier id.

      Parameters

      • id: string

        Login attempt identifier.

      • typeId: string

        2FA type identifier.

      • info: IStorage

        Additional data for request processing.

      Returns Promise<ISessionResult>

      Result of processing check request at 2FA session.

    • Process command request at 2FA session with info for login attempt with identifier id.

      Parameters

      • id: string

        Login attempt identifier.

      • typeId: string

        2FA type identifier.

      • info: IStorage

        Additional data for request processing.

      Returns Promise<TwoFactorAuthResult>

      Result of processing command request at 2FA session.

    • Process restart 2FA session request with type typeId for login attempt with identifier id.

      Parameters

      • id: string

        Login attempt identifier.

      • typeId: string

        2FA type identifier.

      • info: IStorage

        Additional data for request processing.

      Returns Promise<TwoFactorAuthResult>

      Result of processing restart 2FA session request.