providers/concept2
Concept2Profile
繼承自
Record
<string
,any
>
屬性
age_restricted
age_restricted: boolean;
country
country: string;
dob
dob: string;
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 提供者。
參數
參數 | 類型 |
---|---|
options | OAuthUserConfig <Concept2Profile > |