In this section, we will fully implement the sign-in and sign-out processes from our React frontend. We are going to interact with Auth0 as a part of these processes.
Interacting with Auth0 from the frontend
Installing the Auth0 JavaScript client
There is a standard Auth0 JavaScript library for single-page applications that we can leverage that will interact nicely with Auth0. The npm package for the library is called @auth0/auth0-spa-js. Let's install this by running the following command in the Visual Studio Code Terminal:
> npm install @auth0/auth0-spa-js
TypeScript types are included in this library, so the Auth0 client library for single-page applications is now installed into our project.