Files
core/packages/compiled/auth.ts
Innei 5bf93975f3 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>
2025-04-06 23:00:39 +08:00

15 lines
433 B
TypeScript

export { betterAuth, getCookieKey } from 'better-auth'
export { getSessionCookie, setSessionCookie } from 'better-auth/cookies'
export {
APIError,
createAuthMiddleware,
getSessionFromCtx,
} from 'better-auth/api'
export { mongodbAdapter } from 'better-auth/adapters/mongodb'
export { fromNodeHeaders, toNodeHandler } from 'better-auth/node'
export { bearer, jwt } from 'better-auth/plugins'
export type * from 'better-auth'