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

providers/zoom

內建 Zoom 整合。

ZoomProfile

請參閱:https://developers.zoom.us/docs/integrations/oauth/#using-an-access-token

繼承

屬性

account_id

account_id: string;

created_at

created_at: string;

dept

dept: string;

email

email: string;

first_name

first_name: string;

group_ids

group_ids: string[];

host_key

host_key: string;

id

id: string;

im_group_ids

im_group_ids: string[];

jid

jid: string;

language

language: string;

last_client_version

last_client_version: string;

last_login_time

last_login_time: string;

last_name

last_name: string;

personal_meeting_url

personal_meeting_url: string;

phone_country

phone_country: string;

phone_number

phone_number: string;

pic_url

pic_url: string;

pmi

pmi: number;

role_name

role_name: string;

status

status: string;

timezone

timezone: string;

type

type: number;

use_pmi

use_pmi: boolean;

vanity_url

vanity_url: string;

verified

verified: number;

default()

default(config): OAuthConfig<ZoomProfile>

將 Zoom 登入新增至您的頁面。

設定

回調 URL

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

配置

import { Auth } from "@auth/core"
import Zoom from "@auth/core/providers/zoom"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Zoom({ clientId: ZOOM_CLIENT_ID, clientSecret: ZOOM_CLIENT_SECRET }),
  ],
})

資源

筆記

預設情況下,Auth.js 假設 Zoom 提供者基於 OAuth 2 規範。

💡

Zoom 提供者帶有預設配置。若要覆寫您的用例的預設值,請查看自訂內建的 OAuth 提供者

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

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

參數

參數類型
configOAuthUserConfig<ZoomProfile>

回傳

OAuthConfig<ZoomProfile>

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