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 > |