import { heyFetch } from './client.js' /** * Smoke-test HEY auth and return the signed-in identity. * Use when verifying heyToken or as a cheap health check. * * @returns {Promise<{ id: number, name: string }>} * * @example * import identity from 'kody:@danj/hey-email' * const me = await identity() */ export default async function identity() { const data = await heyFetch('/identity') return { id: data.id, name: data.name } }