feat: completely overhaul the auth model

* Cookies are now encrypted JWTs (GHSA-wrqq-v7qw-r5w7)
* Authentication is stored in the SQLite database (auto-migrated)
* Session logic is much cleaner
This commit is contained in:
Aarnav Tale
2025-08-19 17:49:32 -04:00
parent 8cb91cd45b
commit d2c4f5eb2b
29 changed files with 628 additions and 505 deletions
+10 -2
View File
@@ -45,6 +45,7 @@
"dotenv": "^16.5.0",
"drizzle-orm": "^0.44.2",
"isbot": "^5.1.28",
"jose": "6.0.12",
"lucide-react": "^0.511.0",
"mime": "^4.0.7",
"openid-client": "^6.5.0",
@@ -59,6 +60,7 @@
"react-stately": "^3.38.0",
"remix-utils": "^8.8.0",
"tailwind-merge": "^3.3.0",
"ulidx": "2.4.1",
"undici": "^7.10.0",
"usehooks-ts": "^3.1.1",
"yaml": "^2.8.0"
@@ -92,8 +94,14 @@
},
"pnpm": {
"supportedArchitectures": {
"os": ["current", "linux"],
"cpu": ["x64", "arm64"]
"os": [
"current",
"linux"
],
"cpu": [
"x64",
"arm64"
]
},
"onlyBuiltDependencies": [
"@biomejs/biome",