Skip to content
← Public packages

@kentcdodds/twitch

Monitor Twitch streams, send chat, and update channel settings.

src/get-me.ts

17 lines · 494 B · TypeScript
import { 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 }