providers/zoom
ZoomProfile
查看:https://developers.zoom.us/docs/integrations/oauth/#using-an-access-token
扩展
Record
<string
,any
>
属性
account_id
account_id: string;
created_at
created_at: string;
dept
dept: string;
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 提供者。
参数
参数 | 类型 |
---|---|
config | OAuthUserConfig <ZoomProfile > |