import apiClient from './client'; // Fix: WEB-M5 — types from the shared contracts package. import type { AuthUser, UserProfile } from '@proposal-system/api-contracts'; export type { AuthUser, UserProfile } from '@proposal-system/api-contracts'; export const authApi = { exchangeCode: async (code: string, redirectUri: string): Promise => { const res = await apiClient.post('/auth/callback', { code, redirectUri }); return res.data; }, devLogin: async (email: string, displayName: string, role: string): Promise => { const res = await apiClient.post('/auth/dev-login', { email, displayName, role }); return res.data; }, getMe: async (): Promise => { const res = await apiClient.get('/users/me'); return res.data; }, };