Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartCargo Auth0 Integration

This project now implements a production-oriented Auth0 architecture with:

  • Native in-app account entry pages (/account-selection, /admin/login, /admin/signup, /courier/login)
  • Role-aware route guards for admin and courier areas
  • Remember-me behavior (memory vs local-storage token caching)
  • Auth callback route handling and route restoration
  • Secure server-side Auth0 Management API integration for courier provisioning

Run locally

  1. Install dependencies:
    npm install
  2. Create .env from .env.example and fill real values.
  3. Start frontend:
    npm start
  4. Start backend API (separate terminal):
    npm run start:api

Required Auth0 dashboard setup

Detailed setup is documented in docs/auth0-setup.md.

Security note

AUTH0_CLIENT_SECRET is server-only. Do not place it in REACT_APP_* variables.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages