providers/passage
PassageProfile
参照
プロパティ
at_hash
at_hash: string;
aud
aud: string[];
auth_time
auth_time: number;
azp
azp: string;
c_hash
c_hash: string;
client_id
client_id: string;
email: string;
ユーザーのメールアドレス
email_verified
email_verified: boolean;
ユーザーがメールアドレスを確認したかどうか
exp
exp: number;
iat
iat: number;
iss
iss: string;
phone
phone: string;
ユーザーの電話番号
phone_number_verified
phone_number_verified: boolean;
ユーザーが電話番号を確認したかどうか
sub
sub: string;
Passage におけるユーザーの一意の識別子
default()
default(config): OAuthConfig<PassageProfile>
Passage ログインをページに追加します。
設定
コールバック URL
https://example.com/api/auth/callback/passage
構成
import { Auth } from "@auth/core"
import Passage from "@auth/core/providers/passage"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Passage({
clientId: PASSAGE_ID,
clientSecret: PASSAGE_SECRET,
issuer: PASSAGE_ISSUER,
}),
],
})
リソース
注意事項
デフォルトでは、Auth.js は Passage プロバイダーが Open ID Connect 仕様に基づいていると想定しています。
💡
Passage プロバイダーには、デフォルト構成が付属しています。ユースケースに合わせてデフォルトをオーバーライドするには、組み込みの OAuth プロバイダーのカスタマイズを確認してください。
パラメータ
パラメータ | タイプ |
---|---|
config | OAuthUserConfig <PassageProfile > |