Skip to content

ronaldruzicka/auth0-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth0 Authentication Web Application

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

Prerequisites

  • Node.js (v18 or higher)
  • pnpm (v8 or higher)
  • Auth0 account and application setup

Setup

1. Install dependencies

For the authentication app:

cd auth-app
pnpm install

For the client app:

cd client-app
pnpm install

2. Environment Configuration

Copy 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 configuration

3. Running the Applications

Start the authentication app:

cd auth-app
pnpm dev

Start the client app (in a separate terminal):

cd client-app
pnpm dev

Development

Building

pnpm build

Testing

pnpm test

Running in production

pnpm start

Architecture

The 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published