Register Single-Page Web Applications
To integrate Auth0 with a single-page web app, you must first register your app with Auth0 using the Dashboard.
Go to Dashboard > Applications and click Create Application.
Enter a descriptive name for your application, select Single-Page Web Applications, and click Create.
Once the new application is created, you will be directed to Application Settings which includes the following tabs:
Settings Tab Description Settings Shows all available settings for your application. By default, most of the settings will be created for you. Quick Start Shows all the available examples for your application type. Add-ons Allows you to enable Add-ons for your application. Add-ons are extensions and usually are third-party APIs used with Applications for which Auth0 generates access tokens. Connections Allows you to enable connections for your application. Connections are sources of users; they can be enabled and shared between multiple applications.
Once you have registered and configured your application, some common next steps are:
Configure a connection and enable it for your application.
Modify your app code to use your Auth0-registered application. See our Auth0 Quickstarts, where you'll find detailed instructions and samples for a variety of technologies. You'll also learn how to implement login and logout, handle your user sessions, retrieve and display user profile information, add rules to customize your authentication flow, and more.
Call an API using our Authorization feature set.
Use Auth0 APIs.
The Authentication API handles all primary identity-related functions (for example: login, logout, get user profile). Most users consume this API through our Quickstarts, the Auth0.js library, or the Lock widget. However, if you are building all of your authentication UI manually, you will have to interact with this API directly.
The Management API allows you to automate various tasks that can also be accessed via the Dashboard in Auth0 (for example: creating users, setting application grant types).