← Public packages
@kody/google
Call Gmail, Calendar, Tasks, Drive, Docs, Sheets, People, YouTube, and Analytics through saved Google OAuth.
src/smoke-test.ts
18 lines · 723 B · TypeScriptimport { smokeTest as smokeTestImpl } from './index.ts'
import type { GoogleAuthParams } from './accounts.ts'
/**
* Run a read-only OAuth smoke test that returns the signed-in Google profile.
* Prefer this subpath when you only need the smoke check.
* @param params.integration - Saved OAuth integration name. Defaults to `google`.
* @returns Smoke result with integration name and profile.
* @example
* import smokeTest from 'kody:@kody/google/smoke-test'
* const result = await smokeTest()
* // => { integration: 'google', profile: { email: '...', name: '...', emailVerified: true } }
*/
export async function smokeTest(params: GoogleAuthParams = {}) {
return smokeTestImpl(params)
}
export default smokeTest