Skip to content

Commit

Permalink
fix: complied better auth typing export
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Dec 3, 2024
1 parent 3db591f commit 49cc5b6
Show file tree
Hide file tree
Showing 4 changed files with 807 additions and 699 deletions.
3 changes: 1 addition & 2 deletions apps/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"axios": "^1.7.8",
"axios-retry": "4.5.0",
"bcryptjs": "^2.4.3",
"better-auth": "1.0.7",
"blurhash": "2.0.5",
"cache-manager": "5.7.6",
"cache-manager-ioredis-yet": "2.1.2",
Expand Down Expand Up @@ -171,4 +170,4 @@
"vitest": "1.5.2",
"zx": "7.2.3"
}
}
}
5 changes: 4 additions & 1 deletion apps/core/src/modules/auth/auth.implement.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { IncomingMessage } from 'node:http'
import { MongoClient } from 'mongodb'
import type { BetterAuthOptions, BetterAuthPlugin } from 'better-auth'
import type {
BetterAuthOptions,
BetterAuthPlugin,
} from '@mx-space/complied/auth'
import type { ServerResponse } from 'node:http'

import {
Expand Down
2 changes: 2 additions & 0 deletions packages/complied/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export { APIError } 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'
Loading

0 comments on commit 49cc5b6

Please sign in to comment.