@kody/x
src/get-me.ts
13 lines · 393 B · TypeScriptimport { 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)
}