Function: useTestLogin()
useTestLogin():
UseMutationResult<{string;id:string;isAdmin:boolean;name:string|null; },Error,void| {password?:string; },unknown>
Defined in: packages/api-client/src/use-auth.ts:63
Sign in via the preview-only test-login endpoint (previews have no Google OAuth creds). The response is the signed-in user, so seed the me-query with it and the app renders authenticated. On hardened previews the endpoint demands the per-PR shared password, sent as a header.
Returns
UseMutationResult<{ email: string; id: string; isAdmin: boolean; name: string | null; }, Error, void | { password?: string; }, unknown>