@cfxlabsinc/b2b-services
    Preparing search index...

    The reference server side of CognitoAccountSecurityActions: server-only, framework-free. Every call acts on the session's own login with its access token. A federated session may manage only its passkeys: its IdP owns the password and second factor.

    type CognitoAccountSecurityDeps = {
        recordPasskeyEnrollment: RecordPasskeyEnrollment;
        totpIssuer: string;
        accountAccess(): Promise<CognitoAccountAccess | null>;
        afterPasswordChange(
            input: { cognitoSub: CognitoIdentity["sub"] },
        ): Promise<void>;
        endSession(): Promise<void>;
        qrPngBase64(otpauthUri: string): Promise<string>;
        reportError(error: unknown): void;
    }
    Index
    recordPasskeyEnrollment: RecordPasskeyEnrollment

    Runs after each passkey change, with Cognito's list after it.

    totpIssuer: string

    The authenticator app's name for the entry, e.g. "CFX".