Skip to content

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

Package listing

@kody/x

src/get-me.ts

13 lines · 393 B · TypeScript
import { getMe } from './client.ts'
import type { XGetMeParams } from './client.ts'

/**
 * Read the authenticated X user (GET /users/me).
 * Pass `account: '<purpose>'` for integration `x-<purpose>`.
 * @example
 * import getMe from 'kody:@kody/x/get-me'
 * const me = await getMe()
 */
export default async function getMeEntrypoint(params: XGetMeParams = {}) {
	return await getMe(params)
}