Added demo access
This commit is contained in:
@@ -103,6 +103,11 @@ The app includes an Express API in [backend/src/app.ts](/home/corey/github/Arsen
|
||||
- `ALLOW_REGISTRATION=true|false`
|
||||
- Controls whether `POST /api/auth/register` is available
|
||||
- When `false`, the login UI hides self-service account creation
|
||||
- `ALLOW_DEMO_ACCOUNT=true|false`
|
||||
- Enables a backend-managed demo account and a demo sign-in button on the login page
|
||||
- `DEMO_ACCOUNT_EMAIL`
|
||||
- `DEMO_ACCOUNT_PASSWORD`
|
||||
- `DEMO_ACCOUNT_NAME`
|
||||
|
||||
### Response shape notes
|
||||
|
||||
@@ -167,6 +172,8 @@ Example:
|
||||
- Creates a local account when registration is enabled
|
||||
- `POST /api/auth/login`
|
||||
- Signs in with local email/password
|
||||
- `POST /api/auth/demo`
|
||||
- Signs in to the configured demo account when demo mode is enabled
|
||||
- `POST /api/auth/logout`
|
||||
- Invalidates the current session token
|
||||
- `GET /api/auth/me`
|
||||
|
||||
Reference in New Issue
Block a user