跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

providers/concept2

內建的 Concept2 整合。

Concept2Profile

繼承自

屬性

age_restricted

age_restricted: boolean;

country

country: string;

dob

dob: string;

email

email: string;

email_permission

email_permission: null | boolean;

first_name

first_name: string;

gender

gender: string;

id

id: number;

last_name

last_name: string;

logbook_privacy

logbook_privacy: null | string;

max_heart_rate

max_heart_rate: null | number;

profile_image

profile_image: string;

username

username: string;

weight

weight: null | number;

default()

default(options): OAuthConfig<Concept2Profile>

將 Concept2 登入新增至您的頁面。

設定

回呼 URL

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

組態

import { Auth } from "@auth/core"
import Concept2 from "@auth/core/providers/concept2"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Concept2({
      clientId: CONCEPT2_CLIENT_ID,
      clientSecret: CONCEPT2_CLIENT_SECRET
    }),
  ],
})

資源

注意事項

預設情況下,Auth.js 假設 Concept2 提供者是基於 OAuth 2 規範。

💡

Concept2 提供者帶有預設組態)。若要覆寫您用例的預設值,請查看自訂內建的 OAuth 提供者

免責聲明 如果您認為在預設組態中發現錯誤,您可以開啟一個議題

Auth.js 嚴格遵守規範,對於提供者偏離規範的任何情況,不承擔任何責任。您可以開啟一個議題,但如果問題是不符合規範,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。

參數

參數類型
optionsOAuthUserConfig<Concept2Profile>

回傳

OAuthConfig<Concept2Profile>

Auth.js © Balázs Orbán 和團隊 -2024