npm install
.env:DATABASE_URL="postgresql://postgres:postgres@localhost:5433/orlogozarlaga"
AUTH0_DOMAIN="your-tenant.us.auth0.com"
AUTH0_CLIENT_ID="your-client-id"
AUTH0_CLIENT_SECRET="your-client-secret"
AUTH0_SECRET="32-byte-hex-secret"
APP_BASE_URL="http://localhost:3000"
docker run --name orlogozarlaga-postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=orlogozarlaga \
-p 5433:5432 \
-d postgres:16
npx prisma migrate dev
npx prisma db seed
npm run dev
Create a Regular Web Application in Auth0 Dashboard.
In Application -> Settings, set:
Allowed Callback URLs:x
http://localhost:3000/auth/callback
Allowed Logout URLs:
http://localhost:3000/login
Allowed Web Origins:
http://localhost:3000
.env:DATABASE_URL="postgresql://postgres:postgres@localhost:5433/orlogozarlaga"
AUTH0_DOMAIN="dev-oqcbacp6nbl2y2b1.us.auth0.com"
AUTH0_CLIENT_ID="CRpK7dD5nuZwOQ5y0EJBc5qy5zKL63C8"
AUTH0_CLIENT_SECRET="u17wVdmG7Jp1Rc03ZUk-m3mQwHRM2hqivhmhrVMdZJ4fNLOGhKptLBchYbBuIKGG"
AUTH0_SECRET="c4be60be8637129807fdd55b9daf1867a40692a24e8e3058382443db36f21d2d"
APP_BASE_URL=http://localhost:3000
AUTH0_SECRET locally:openssl rand -hex 32
Then place the output into:
AUTH0_SECRET="paste-generated-value-here"
Enable Universal Login in Auth0 and keep the app on the default hosted login page.
Start the app and open:
http://localhost:3000/login
Continue with Auth0/pocketDashboardLogout and confirm you return to /loginnpx prisma db seed creates a sample user record for demo@user.com, but access still
requires a real Auth0 login with the same email.