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 提供者.
免责声明 如果您认为在默认配置中发现了错误,您可以 打开一个问题.
Auth.js 严格遵守规范,对于提供者对规范的任何偏差,它概不负责。您可以打开一个问题,但如果问题是非遵守规范,我们可能不会寻求解决办法。您可以在 Discussions 中寻求更多帮助。
参数
| 参数 | 类型 |
|---|---|
options | OAuthUserConfig<Concept2Profile> |