Skip to content

Commit

Permalink
fix: 修正captchaManager
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Dec 16, 2024
1 parent bba4bbd commit c0be2c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions apps/example/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import { Gitee } from '@next-auth-oauth/gitee'
import Github from 'next-auth/providers/github'
import Wehcatmp from '@next-auth-oauth/wechatmp'
import { AuthConfig } from './auth.config'

import { captchaManager } from '@/service/captcha.service'
export const authAdapter = PrismaAdapter(prisma)
export const wechatMpProvder = Wehcatmp({})
export const wechatMpProvder = Wehcatmp({
captchaManager,
})

export const authService = new AuthService()

Expand Down
4 changes: 2 additions & 2 deletions packages/wechatmp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next-auth-oauth/wechatmp",
"version": "0.2.2",
"version": "0.2.4",
"description": "基于Auth.js的微信公众号验证码登录、二维码扫描登录插件",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -36,7 +36,7 @@
"next": "^15"
},
"dependencies": {
"wechatmp-kit": "workspace:*"
"wechatmp-kit": "^0.1"
},
"devDependencies": {},
"publishConfig": {
Expand Down

0 comments on commit c0be2c9

Please sign in to comment.