src/get-me.ts
17 lines · 494 B · TypeScriptimport { getMe } from './core.ts'
import type { TwitchUser } from './types.ts'
/**
* Read the authenticated Twitch user from Helix GET /users.
*
* @returns Normalized Twitch user profile for the token bearer.
* @example
* import getMe from 'kody:@kentcdodds/twitch/get-me'
* const me = await getMe()
* // => { id: '...', login: 'kentcdodds', displayName: 'Kent C. Dodds' }
*/
export default async function twitchGetMe(): Promise<TwitchUser> {
return await getMe()
}
export { getMe }