Skip to content

Commit c0be2c9

Browse files
fix: 修正captchaManager
1 parent bba4bbd commit c0be2c9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/example/src/auth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import { Gitee } from '@next-auth-oauth/gitee'
77
import Github from 'next-auth/providers/github'
88
import Wehcatmp from '@next-auth-oauth/wechatmp'
99
import { AuthConfig } from './auth.config'
10-
10+
import { captchaManager } from '@/service/captcha.service'
1111
export const authAdapter = PrismaAdapter(prisma)
12-
export const wechatMpProvder = Wehcatmp({})
12+
export const wechatMpProvder = Wehcatmp({
13+
captchaManager,
14+
})
1315

1416
export const authService = new AuthService()
1517

packages/wechatmp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@next-auth-oauth/wechatmp",
3-
"version": "0.2.2",
3+
"version": "0.2.4",
44
"description": "基于Auth.js的微信公众号验证码登录、二维码扫描登录插件",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -36,7 +36,7 @@
3636
"next": "^15"
3737
},
3838
"dependencies": {
39-
"wechatmp-kit": "workspace:*"
39+
"wechatmp-kit": "^0.1"
4040
},
4141
"devDependencies": {},
4242
"publishConfig": {

0 commit comments

Comments
 (0)