Skip to content
需要从 NextAuth.js v4 升级到最新版本吗?请查阅 版本升级指南

providers/concept2

Built-in Concept2 integration.

Concept2Profile

Extends

Properties

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>

Add Concept2 login to your page.

Setup

Callback URL

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

Configuration

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
    }),
  ],
})

Resources

Notes

By default, Auth.js assumes that the Concept2 provider is based on the OAuth 2 specification.

💡

The Concept2 provider comes with a default configuration). To override the defaults for your use case, check out customizing a built-in OAuth provider.

Disclaimer If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

Parameters

ParameterType
optionsOAuthUserConfig<Concept2Profile>

Returns

OAuthConfig<Concept2Profile>