The Auth0 ACUL JS SDK enables you to work with Advanced Customization for Universal Login.
It simplifies integrating authentication screens (login, signup, passwordless, passkey enrollment, etc.) into your web applications, providing the necessary tools for seamless implementation.
๐ Documentation
Quickstart - our guide for setting up the SDK on your app.
After installing the SDK, you can import the relevant screen module, which you want to configure
Importing Screens
// Default import of any particular screen, eg: login-id screenimportLoginIdfrom'@auth0/auth0-acul-js/login-id';
// Named import of any screenimport { LoginId } from'@auth0/auth0-acul-js';
// Default import of all screensimport * asScreensfrom'@auth0/auth0-acul-js';
Note: For more details on import paths for all screens, refer to the FAQ's.
๐จโ๐ป Usage
Adding Functionality to Your Screens
Letโs look at an example for adding logic to the login-id screen.
Example: Add Logic to Login Button
importLoginIdfrom'@auth0/auth0-acul-js/login-id';
const loginIdManager = newLoginId();
// Trigger the login method on button click
loginIdManager.login({
username: "testUser"
});
To allow users to login via social connections (e.g., Google, Facebook), use the following snippet
importLoginIdfrom"@auth0/auth0-acul-js/login-id";
const loginIdManager = newLoginId();
// Check if alternateConnections is available and has at least one itemif (!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 purposesconsole.log(`Selected connection: ${selectedConnection.name}`);
// Proceed with social login using the selected connection
loginIdManager.socialLogin({
connection: selectedConnection.name,
})
Error handling for Login
A top-level getter function, getErrors, can be used to retrieve detailed authentication errors when backend validation fails.
Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
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.
The Auth0 ACUL JS SDK enables you to work with Advanced Customization for Universal Login.
The npm package @auth0/auth0-acul-js receives a total of 4,698 weekly downloads. As such, @auth0/auth0-acul-js popularity was classified as popular.
We found that @auth0/auth0-acul-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 49 open source maintainers collaborating on the project.
Package last updated on 09 Dec 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket Firewall Free is now bundled into Docker Hardened Images, adding build-time and dependency-install supply chain protection on top of hardened base images for Node.js, Python, and Rust.
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.