import { getViewer } from './domain.ts'
import type { ProductHuntIntegrationOptions } from './types.ts'
/**
* Return the connected Product Hunt hunter from `viewer.user`.
* Requires the `private` OAuth scope.
* @example
* import getViewer from 'kody:@kentcdodds/producthunt/get-viewer'
* const me = await getViewer()
* // => { id: '...', name: 'Kent C. Dodds', username: 'kentcdodds' }
*/
export default async function getViewerEntrypoint(params: ProductHuntIntegrationOptions = {}) {
return await getViewer(params)
}