import type { ZoomAuthInput } from './types.ts' export { getCurrentUser } from './core.ts' import { getCurrentUser } from './core.ts' /** * Verify which Zoom identity the selected OAuth integration or S2S app resolves to. * * @param params.integrationName - Saved OAuth integration; defaults to `zoom`. * @param params.auth - `'s2s'` to use Server-to-Server secrets (also pass `accountId`). * @param params.userId - Defaults to `me`. * @returns User id, email, and display name. Never returns tokens. * @example * import getZoomCurrentUser from 'kody:@kody/zoom/get-current-user' * const user = await getZoomCurrentUser() * // => { auth: { mode: 'oauth', integrationName: 'zoom', ... }, email: '...', id: '...' } */ export default async function getZoomCurrentUser( params: ZoomAuthInput & { userId?: string } = {}, ) { return await getCurrentUser(params) }