Registering and authenticating users using Auth0
Auth0 can provide all of the user management and authentication capabilities out of the box. There are lots of providers supported by Auth0. Following are some famous providers that are supported by Auth0:
- Email/password
- GitHub
Depending on the app, you may not need to use all of these authentication methods. For example, it would make more sense to use a LinkedIn authentication for an app focusing on a working professional to narrow down the audiences who fit the user profile of the app.
In this chapter, we will try to simplify the authentication concept as much as possible. You will learn how to do the following things:
- Registering a new user
- Logging in and logging out a user
- Showing a user's profile information
Getting ready
You need the device to test the app because we are using Cordova plugins for authentication, which requires either device or simulator to run the app.
How to do it...
We will do it in two...