providers/naver
NaverProfile
https://developers.naver.com/docs/login/profile/profile.md
拡張
Record
<string
,any
>
プロパティ
message
message: string;
response
response: {
age: string;
birthday: string;
birthyear: string;
email: string;
gender: "F" | "M" | "U";
id: string;
mobile: string;
name: string;
nickname: string;
profile_image: string;
};
age?
optional age: string;
birthday?
optional birthday: string;
birthyear?
optional birthyear: string;
email?
optional email: string;
gender?
optional gender: "F" | "M" | "U";
id
id: string;
mobile?
optional mobile: string;
name?
optional name: string;
nickname?
optional nickname: string;
profile_image?
optional profile_image: string;
resultcode
resultcode: string;
default()
default<P>(options): OAuthConfig<P>
ページにNaverログインを追加します。
セットアップ
コールバックURL
https://example.com/api/auth/callback/naver
構成
import { Auth } from "@auth/core"
import Naver from "@auth/core/providers/naver"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Naver({ clientId: NAVER_CLIENT_ID, clientSecret: NAVER_CLIENT_SECRET }),
],
})
リソース
注釈
デフォルトでは、Auth.jsはNaverプロバイダーがOAuth 2仕様に基づいていると想定しています。
💡
Naverプロバイダーには、デフォルト構成が付属しています。ユースケースに合わせてデフォルトをオーバーライドするには、組み込みOAuthプロバイダーのカスタマイズを確認してください。
型パラメータ
型パラメータ |
---|
P extends NaverProfile |
パラメータ
パラメータ | 型 |
---|---|
options | OAuthUserConfig <P > |
戻り値
OAuthConfig
<P
>