Skip to content

Commit 8b21ac4

Browse files
authored
Merge pull request #293 from deploystackio/main
prod relese
2 parents 9dda0e2 + 8c324ed commit 8b21ac4

29 files changed

+1650
-1589
lines changed

development/backend/api/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@ const REQUEST_SCHEMA = {
600600
minimum: 1,
601601
description: 'How many items (must be positive)'
602602
},
603-
type: {
604-
type: 'string',
605-
enum: ['mysql', 'sqlite'],
603+
type: {
604+
type: 'string',
605+
enum: ['postgresql', 'mysql'],
606606
description: 'Database engine type'
607607
}
608608
},
@@ -649,7 +649,7 @@ const ERROR_RESPONSE_SCHEMA = {
649649
interface RequestBody {
650650
name: string;
651651
count: number;
652-
type: 'mysql' | 'sqlite';
652+
type: 'postgresql' | 'mysql';
653653
}
654654

655655
interface SuccessResponse {
@@ -824,7 +824,7 @@ if (request.body.name.length < 3) {
824824
}
825825

826826
// BAD: Manual enum validation (redundant)
827-
if (request.body.type !== 'mysql' && request.body.type !== 'sqlite') {
827+
if (request.body.type !== 'postgresql' && request.body.type !== 'mysql') {
828828
return reply.status(400).send({ error: 'Invalid database type' });
829829
}
830830
```

development/backend/auth.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The backend authentication system is built on several key components:
1313
- **[Lucia v3](https://lucia-auth.com/)** - Core session management and authentication library
1414
- **[Argon2](https://github.com/napi-rs/node-rs)** - Industry-standard password hashing
1515
- **[Arctic](https://arctic.js.org/)** - OAuth 2.0 client library for provider integration
16-
- **Database-backed sessions** - SQLite/Turso storage for session persistence
16+
- **Database-backed sessions** - PostgreSQL storage for session persistence
1717
- **Dual authentication** - Support for both cookie sessions and OAuth2 Bearer tokens
1818

1919
## Authentication Flow Types

0 commit comments

Comments
 (0)