chore: update dependencies and improve auth implementation

- Updated various dependencies in package.json and pnpm-lock.yaml, including:
  - `redis-memory-server` from 0.11.0 to 0.12.1
  - `@sxzz/eslint-config` from 4.6.0 to 6.1.1
  - `@types/node` from 22.13.10 to 22.14.0
  - `eslint` from ^9.17.0 to ^9.24.0
  - `lint-staged` from 15.3.0 to 15.5.0
  - `typescript` from 5.7.3 to 5.8.3
  - Other minor updates across various packages.

- Refactored `CreateAuth` function in `auth.implement.ts` to utilize `createAuthMiddleware` for better session handling.
- Enhanced exports in `auth.ts` to include new utility functions from `better-auth`.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-04-06 23:00:39 +08:00
parent 577d5c5401
commit 5bf93975f3
7 changed files with 2803 additions and 2131 deletions

View File

@@ -46,7 +46,7 @@
"devDependencies": {
"@types/cors": "2.8.17",
"@types/express": "5.0.1",
"@types/lodash": "4.17.15",
"@types/lodash": "4.17.16",
"abort-controller": "3.0.0",
"axios": "^1.7.9",
"camelcase-keys": "^9.1.3",
@@ -54,7 +54,7 @@
"express": "4.21.2",
"form-data": "4.0.2",
"lodash": "4.17.21",
"tsup": "8.3.6",
"tsup": "8.4.0",
"umi-request": "1.4.0",
"vite": "^6.0.3",
"vitest": "2.1.8"