@moneytree/mt-link-javascript-sdk
    Preparing search index...

    Interface ConfigsOptions

    interface ConfigsOptions {
        authAction?: "login" | "signup";
        authnMethod?: "passwordless" | "sso" | "credentials" | "otp";
        backTo?: string;
        email?: string;
        emailToken?: string;
        forceLogout?: boolean;
        isNewTab?: boolean;
        sdkPlatform?: "ios" | "android" | "js";
        sdkVersion?: string;
        showAuthToggle?: boolean;
        showRememberMe?: boolean;
    }

    Hierarchy (View Summary)

    Index
    authAction?: "login" | "signup"

    Show the login or sign up screen when a session does not exist during an MtLinkSdk.authorize call.

    Set default value via MtLinkSdk.init

    'login'
    
    authnMethod?: "passwordless" | "sso" | "credentials" | "otp"

    Use different authentication methods.

    backTo?: string

    A redirection URL for redirecting a user back to in one of the following conditions:

    • User clicks on Back to [App Name] button in any Moneytree screen.
    • User refuses to give consent to access permission in the consent screen.
    • User logs out from Moneytree via an app with this client ID
    • User revokes consent from settings screen opened via an app with this client ID

    ⚠️ No Back to [App Name] button will be shown if this value is not set, and any of the actions mentioned above will redirect the user back to the login screen by default.

    Set the default value via MtLinkSdk.init

    email?: string

    Email address to pre-fill the email field in login or sign up or form.

    Set the default value via MtLinkSdk.init

    emailToken?: string
    forceLogout?: boolean

    Force existing user session to logout and call authorize with a clean state.

    false
    
    isNewTab?: boolean

    Call method and open/render in a new browser tab. By default all views open in the same tab.

    Set default value via MtLinkSdk.init

    false
    
    sdkPlatform?: "ios" | "android" | "js"
    sdkVersion?: string
    showAuthToggle?: boolean

    If you wish to disable the Login to Sign up form toggle button and vice-versa in the auth screen, set this to false.

    Set default value via MtLinkSdk.init

    true
    
    showRememberMe?: boolean

    If you wish to disable the Stay logged in for 30 days checkbox in the login screen, set this to false.

    Set default value via MtLinkSdk.init

    true