@auth0/auth0-acul-js - v0.1.0-beta.5
    Preparing search index...

    Class LoginId

    Hierarchy

    • BaseContext
      • LoginId

    Implements

    Index

    Constructors

    Properties

    screenIdentifier: string = ScreenIds.LOGIN_ID

    Methods

    • 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,
      });