Angular 2 Introduction
This multistep quickstart guide will walk you through setting up and managing authentication in your Angular 2 apps using Auth0.
These tutorials and seed projects have been tested with the following:
- Angular 2.0.1
Create an Application
Create an Auth0 account (or login) and add an authentication client instance from the dashboard. Once you create your client, you will be provided with credentials (domain, client ID, and client secret) which should be stored somewhere safe (do not commit this information to your git repo!). After you login, the sample projects available for download will be pre-configured with your Default App credentials.
Add the Dependencies
To integrate your Angular 2 application with Auth0, you will need to add the following two dependencies:
Lock Widget is the default authentication widget provided by Auth0.
npm install --save auth0-lock
Or the Auth0 CDN:
npm install --save angular2-jwt