Hierarchy

  • BaseContext
    • LoginId

Implements

Constructors

Properties

branding: BrandingMembers
organization: OrganizationMembers
untrustedData: UntrustedDataMembers
screenIdentifier: string = ScreenIds.LOGIN_ID

Methods

  • Parameters

    Returns Promise<void>

    import LoginId from "@auth0/auth0-acul-js/login-id";

    const loginIdManager = new LoginId();

    loginIdManager.login({
    username: <usernameFieldValue>
    });
  • Parameters

    Returns Promise<void>

    import LoginId from "@auth0/auth0-acul-js/login-id";
    const loginIdManager = new LoginId();

    // It internally maps users available passkey config provided from auth0 server
    loginIdManager.passkeyLogin();
  • Parameters

    Returns Promise<void>

    import LoginId from "@auth0/auth0-acul-js/login-id";
    const loginIdManager = new LoginId();

    // Check if alternateConnections is available and has at least one item
    if (!loginIdManager.transaction.alternateConnections) {
    console.error('No alternate connections available.');
    }

    // Select the first available connection (users can select any available connection)
    const selectedConnection = alternateConnections[0];

    // Log the chosen connection for debugging or informational purposes
    console.log(`Selected connection: ${selectedConnection.name}`);

    // Proceed with federated login using the selected connection
    loginIdManager.socialLogin({
    connection: selectedConnection.name,
    });