Skip to content

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

Package listing

@kody/twitch

src/smoke-test.ts

13 lines · 454 B · TypeScript
import { inputRecord, runSmokeTest } from './client.ts'

/**
 * Verify the saved Twitch OAuth integration without returning names or emails.
 *
 * @example
 * import smokeTest from 'kody:@kody/twitch/smoke-test'
 * const result = await smokeTest()
 * // => { ok: true, integration: 'twitch', hasUserId: true, hasLogin: true }
 */
export default async function smokeTest(params: Record<string, unknown> = {}) {
	return runSmokeTest(inputRecord(params))
}