Chartbreaker
    Preparing search index...

    Type Alias AuthorizedOperation<PerformedOperationType>

    An operation that is ready to perform authorized (e.g. MTAN has been requested)

    type AuthorizedOperation<PerformedOperationType> = {
        challengeExplanation?: string;
        challengePrompt?: string;
        challengePromptType?: "text" | "base64png";
        perform: (
            challengeResponse?: string,
            trkTag?: TrackingTag,
            confirmHint?: (msg: string) => Promise<boolean>,
        ) => Promise<PerformedOperationType>;
        twoFactorConfirmation?: TwoFactorConfirmation;
    }

    Type Parameters

    • PerformedOperationType
    Index

    Properties

    challengeExplanation?: string

    If the challenge needs further explanation, this may contain additional information to display to the user.

    challengePrompt?: string
    challengePromptType?: "text" | "base64png"
    perform: (
        challengeResponse?: string,
        trkTag?: TrackingTag,
        confirmHint?: (msg: string) => Promise<boolean>,
    ) => Promise<PerformedOperationType>
    twoFactorConfirmation?: TwoFactorConfirmation

    If the operation has to be confirmed using a second factor (usually on a different device or in a different app) but no further action has be done on the client side (i.e. user confirms transaction on her device), perform(...) will involve requesting that confirmation and automatically continue with the actual request in one go. However, the user should be informed about the confirmation progress (like showing a text indicating that the transaction must be confirmed on another device). In this case, externalConfirmation is present and can be used to both display the confirmation status and cancel the confirmation (which will result in the perform promise being rejected).