We provide an out-of-the-box authentication & authorization platform for any application — with the extensibility to fit your needs.
With a few lines of code you can have Auth0 integrated in any app written in any language, and any framework. We provide 30+ SDKs & Quickstarts to help you succeed on your implementation
const login = async () => {
await auth0.loginWithRedirect({
redirect_uri: window.location.origin
});
};
Supporting any technology stack
Universal Login is a centralized login page where your users are authenticated. You can dynamically add new capabilities to it, such as social login and multi-factor authentication (MFA), without making any changes to your app’s code
Welcome to Your Company
Forgot Password?
Auth0 stores a variety of information on your users that is easily accessible to you. Administrators can manage user identities including password resets, creating, blocking and deleting users via the Users Dashboard or via the Auth0 API.
Powerful Search
Search across all your users using a simple, yet powerful, query language.
Manage Users
Edit user information, custom attributes, reset their password and second factors, and more.
Assign Roles & Permissions
Manage what users have access to, through roles and permissions.
All applications and scenarios are different. Auth0\'s Rules, Extensions, and Hooks extend the functionality of Auth0\'s base product to adapt it to your company needs and integrate it with other applications and services.
function defaultPictureForNullAvatars(user1: The user object stores information about the logged in user, returned by the identity provider. It is generated when a user authenticates, before rules run., context2: The context object stores contextual information about the current authentication transaction, such as the user's IP address, application, or location., callback3: A function that will run after your main code is executed.) {
if (user.picture.indexOf('cdn.auth0.com') > -1) {
const url = require('url'); 4: Rules run in a JavaScript sandbox. The sandbox supports the ECMAScript 6 language and a large number of Node.js (version 8+) modules that you can import.
const u = url.parse(user.picture, true);
u.query.d = 'URL_TO_YOUR_DEFAULT_PICTURE_HERE';
delete u.search;
user.picture = url.format(u);
}
callback(null, user, context);
}
Rules and Hooks are JavaScript code snippets that run in Auth0 as part of the authentication pipeline. They empower you to control and customize any stage of the authentication pipeline.
Once your user authenticates, Auth0 will generate an ID Token and an Access Token that will be passed back to your application. The Access Token can then be used to call your API and/or any external resource.
const callApi = async () => {
try {
// Get the access token from the Auth0 client
const token = await auth0.getTokenSilently();
// Make the call to the API, setting the token
// in the Authorization header
const response = await fetch("/api/external", {
headers: {
Authorization: \`Bearer \${token}\`
}
});
// Fetch the JSON result
const responseData = await response.json();
// Display the result in the output element
const responseElement = document.getElementById("api-call-result");
responseElement.innerText = JSON.stringify(responseData, {}, 2);
} catch (e) {
// Display errors in the console
console.error(e);
}
};
API SDKs
Your App
Universal Login
Users
Rules
API
Get started using Auth0. Implement authentication for any kind of application in minutes.
Check our QuickstartsLearn about Auth0's Management and Authentication APIs.
Check our DocsJoin the conversation about Auth0 in our community forums.
Join our CommunityLearn new technologies and keep up with the latest on our Developer blog.
Check our Blog