- 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>
12 lines
307 B
TypeScript
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);
|
|
};
|