Skip to content
需要从 NextAuth.js v4 升级到最新版本吗?请查阅 版本升级指南

Faceit Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/faceit

Environment Variables

AUTH_FACEIT_ID
AUTH_FACEIT_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import FaceIt from "next-auth/providers/faceit"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [FaceIt],
})

Notes

  • Grant type: Authorization Code
  • Scopes required to get basic infos like email, nickname, guid and avatar: openid, email, profile