This project is a secure, full-stack web application built with React (frontend) and Node.js/Express (backend), showcasing the use of Auth0 JWT access tokens to protect API endpoints.
β Inspired by the Udemy course βSecure Your Vue.js Applications with Auth0β β but fully implemented in React + TypeScript.
- β React + TypeScript front-end with routing
- β Auth0 authentication (login/logout with redirect)
- β Secure access to profile and messages views
- β Protected Express backend (via Auth0 JWT verification)
- β POST & GET messages with bearer token validation
- β
UI separation:
MessageForm,MessagesList, andMessagesPage - β Elegant layout using Flexbox and custom CSS
- β Auth0 logo integration + descriptive UI
πΌοΈ Screenshots Auth0 Protected Message Page
Or watch this short walkthrough:
π₯ Demo Video
| Layer | Stack |
|---|---|
| Frontend | React + TypeScript + Auth0 SDK |
| Backend | Node.js + Express + express-jwt |
| Auth | Auth0 (Universal Login) |
# Clone the repo
git clone https://github.com/yourusername/auth0-react-ts-app.git
cd auth0-react-ts-app
# Frontend
cd front-end
npm install
npm start # runs at http://localhost:3000
# In another terminal...
cd ../back-end
npm install
node src/server.js # runs at http://localhost:3011π License MIT License. Created by hugo.machefer@gmail.com for educational purposes.
π€ Credits
Auth0
Udemy Course Inspiration https://www.udemy.com/certificate/UC-e2a3871f-77d2-4e3a-a1e2-7e5dda0070e5/?utm_campaign=email&utm_medium=email&utm_source=sendgrid.com
