providers/faceit
default()
default(options): OAuthConfig<Record<string, any>>
將 FACEIT 登入新增至您的頁面。
設定
回調 URL
https://example.com/api/auth/callback/faceit
配置
import { Auth } from "@auth/core"
import FACEIT from "@auth/core/providers/faceit"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
FACEIT({ clientId: FACEIT_CLIENT_ID, clientSecret: FACEIT_CLIENT_SECRET }),
],
})
資源
注意事項
授權類型:授權碼。取得基本資訊(電子郵件、暱稱、GUID 和頭像)的範圍:openid、email、profile。預設情況下,Auth.js 假設 FACEIT 提供者基於 OAuth 2 規範。
💡
FACEIT 提供者帶有預設配置。要覆寫您用例的預設值,請查看自訂內建 OAuth 提供者。
參數
參數 | 類型 |
---|---|
選項 | OAuthUserConfig <Record <string , any >> |
返回
OAuthConfig
<Record
<string
, any
>>