Skip to content

使用微博登录 ​

支持微博登录

1. 注册微博开发者账号 ​

2. 创建应用 ​

3. 配置next-auth ​

typescript
import NextAuth from 'next-auth'
import Weibo from '@next-auth-oauth/weibo'

export default NextAuth({
  providers: [Weibo],
})

3. 配置Weibo的环境变量,修改.env文件 ​

AUTH_WEIBO_ID=APPID
AUTH_WEIBO_SECRET=

Released under the MIT License.