Angular 2 Introduction

This multistep quickstart guide will walk you through setting up and managing authentication in your Angular 2 apps using Auth0.

System Requirements

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.

App Dashboard

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.

    From npm:

    npm install --save auth0-lock

    Or the Auth0 CDN:

    <script src=""></script>

  • angular2-jwt is a helper library for working with JWTs in your Angular 2 applications.

    From npm:

    npm install --save angular2-jwt

Next Tutorial
2. Login
Try Auth0 for FREECreate free Account