@kody/reddit
src/get-me.ts
14 lines · 396 B · TypeScriptimport { getMe } from './client.ts'
/**
* Read the authenticated Reddit account from GET /api/v1/me.
* @example
* import getMe from 'kody:@kody/reddit/get-me'
* const me = await getMe()
* // => { user: { name: '...', id: '...', commentKarma: 0, ... } }
*/
export default async function getMeEntrypoint(
params: { integration?: string; account?: string } = {},
) {
return getMe(params)
}