auth0-acul-js - v1.0.1

ACUL JS SDK

Release Codecov Downloads License

📚 Documentation - 🚀 Getting Started - 💻 API Reference - 💬 Feedback

  • Docs Site - explore our docs site and learn more about Auth0
  • FAQs - frequently asked questions about the auth0-acul-js SDK.

ACUL SDK

  • Ensure that a custom domain is configured for your tenant.
  • Set up the required screen within the actual flow.

From npm:

npm install @auth0/auth0-acul-js

After installing the SDK, you can import the relevant screen module, which you want to configure

// Default import of any particular screen, eg: login-id screen
import LoginId from '@auth0/auth0-acul-js/login-id';

// Named import of any screen
import { LoginId } from '@auth0/auth0-acul-js';

// Default import of all screens
import Screens from '@auth0/auth0-acul-js';

Please refer FAQ's for detailed info on import paths for all screen

Taking example of login-id screen

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

const loginIdManager = new LoginId();
loginIdManager.login({
username: <USERNAME_FIELD_VALUE>
});
const { transaction } = loginIdManager
const requiredFields = transaction.getActiveIdentifiers();

If there is an assosiated social connection, below snippet can help login with selected social connection

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.hasAlternateConnections) {
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.continueWithFederatedLogin({
connection: selectedConnection.name,
})

See more examples

  1. login-id
  2. login-Password
  3. signup-id
  4. signup-password
See more
  1. login-passwordless-email-code
  2. login-passwordless-sms-otp
  3. passkey-enrollment
  4. passkey-enrollment-local
  5. phone-identifier-enrollment
  6. phone-identifier-challenge
  7. email-identifier-challenge
  8. interstitial-captcha

We appreciate feedback and contribution to this repo! Before you get started, please see the following:

To provide feedback or report a bug, please raise an issue on our issue tracker.

Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.


Auth0 Logo

Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout Why Auth0?

This project is licensed under the MIT license. See the LICENSE file for more info.