Live Online Classes in Design, Coding & AI — Small Classes, Free Retakes
Free courses from frontend to fullstack and AI
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Builds on an existing authenticated Node.js/Express app to secure an additional page and create an API with public and private endpoints. The app calls the API with Axios and sends an Auth0 access token to access the private endpoint.
Syllabus
0:00 Hello!
Create a second route in the Web App
Create a second EJS template for this new route
Use EJS includes to extract common markup into one file
Secure the second route with Auth0
Create a simple Express-based API with a public endpoint
Pull API responses into the Web App using Axios
Create a private endpoint in the API
Pass authorization headers to the API from the Axios call
Configure the Web App to request an Access Token from Auth0
The final result and closing comments
Taught by
Okta