This project consists of two applications:
- auth-app: Centralized authentication web application using Auth0
- client-app: Example client application that integrates with the auth app
- Node.js (v18 or higher)
- pnpm (v8 or higher)
- Auth0 account and application setup
For the authentication app:
cd auth-app
pnpm installFor the client app:
cd client-app
pnpm installCopy the example environment files and configure them:
# Authentication app
cd auth-app
cp .env.example .env
# Edit .env with your Auth0 credentials
# Client app
cd client-app
cp .env.example .env
# Edit .env with your configurationStart the authentication app:
cd auth-app
pnpm devStart the client app (in a separate terminal):
cd client-app
pnpm devpnpm buildpnpm testpnpm startThe authentication app serves as a centralized authentication service that handles:
- User login/logout flows with Auth0
- Session management
- Token refresh
- Client application integration
The client app demonstrates how to integrate with the authentication service for protected routes.