multica/apps/web/service/user.ts
Naiyuan Qing 108cf7ffb0 feat(web): add login page for desktop auth callback
- Add email/code login with verification
- Add Google OAuth login
- Add desktop callback API route
- Add request service with device ID handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-13 12:25:03 +08:00

12 lines
307 B
TypeScript

import type { LoginResponse } from '@/lib/interface';
import { post } from './request';
// User login
export const userLogin = async (params: {
authType: number;
googleToken?: string;
email?: string;
verificationCode?: string;
}) => {
return post<LoginResponse>('/api/v1/auth/login', params);
};