Files
unisono/specs/005-simple-http-auth/data-model.md
2025-10-13 17:21:28 +03:00

16 lines
573 B
Markdown

# Data Model: Simple HTTP Auth
## Entities
### Passphrase
- **Description**: A secret string used for authentication.
- **Attributes**:
- `value`: string (The actual passphrase, stored securely in .env)
### Session
- **Description**: Represents a period of continuous interaction between the user and the SPA, during which access is maintained.
- **Attributes**:
- `id`: string (Unique identifier for the session)
- `isAuthenticated`: boolean (Indicates if the session is authenticated)
- `expiry`: datetime (Timestamp when the session expires, if applicable)