providers/kinde
KindeProfile
使用設定檔回調時,從 Kinde 返回的使用者設定檔。參考。
繼承自
Record
<string
,any
>
屬性
first_name
first_name: string;
使用者的名字。
id
id: string;
使用者唯一的識別碼。
last_name
last_name: string;
使用者的姓氏。
picture
picture: string;
指向使用者個人資料圖片的 URL。
preferred_email
preferred_email: string;
使用者的電子郵件地址。
provided_id
provided_id: string;
來自先前系統的使用者識別碼。
username
username: string;
使用者的使用者名稱。
default()
default(config): OIDCConfig<KindeProfile>
設定
回調 URL
https://example.com/api/auth/callback/kinde
設定
import { Auth } from "@auth/core"
import Kinde from "@auth/core/providers/kinde"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Kinde({
clientId: KINDE_CLIENT_ID,
clientSecret: KINDE_CLIENT_SECRET,
issuer: KINDE_DOMAIN,
}),
],
})
資源
注意事項
Kinde 提供者帶有預設設定。若要覆寫您使用案例的預設值,請查看自訂內建 OAuth 提供者。
說明
如果您認為您在預設設定中發現錯誤,您可以開啟問題。
Auth.js 嚴格遵守規格,並且不對提供者偏離規格的任何情況負責。您可以開啟問題,但如果問題不符合規格,我們可能不會尋求解決方案。您可以在討論中尋求更多協助。
參數
參數 | 類型 |
---|---|
config | OIDCUserConfig <KindeProfile > |