Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/reddit

src/get-me.ts

14 lines · 396 B · TypeScript
import { 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)
}