跳到內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

providers/eventbrite

內建的 Eventbrite 整合。

EventbriteProfile

參見

https://www.eventbrite.com/platform/api#/reference/user/retrieve-your-user/retrieve-your-user

繼承自

屬性

emails

emails: {
  email: string;
  primary: boolean;
  verified: boolean;
  }[];

first_name

first_name: string;

id

id: string;

image_id

image_id: string;

last_name

last_name: string;

name

name: string;

default()

default<P>(config): OAuthConfig<P>

將 Eventbrite 登入新增至您的頁面,並向 Eventbrite API 發出請求。

設定

回調網址

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

設定

import { Auth } from "@auth/core"
import Eventbrite from "@auth/core/providers/eventbrite"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [Eventbrite({ clientId: EVENTBRITE_CLIENT_ID, clientSecret: EVENTBRITE_CLIENT_SECRET })],
})

資源

注意事項

預設情況下,Auth.js 假設 Eventbrite 提供者是以 OAuth 2 規格為基礎。

💡

Eventbrite 提供者隨附 預設組態。若要覆寫您的使用案例的預設值,請查看自訂內建的 OAuth 提供者

免責聲明 如果您認為在預設組態中發現錯誤,您可以開啟問題

Auth.js 嚴格遵守規格,並且不對提供者偏離規格的任何情況負責。您可以開啟問題,但如果問題是不符合規格,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。

類型參數

類型參數
P 繼承自 EventbriteProfile

參數

參數類型
configOAuthUserConfig<P>

返回

OAuthConfig<P>

Auth.js © Balázs Orbán 和團隊 -2024