import * as rest from './rest.js'; export async function login(user, password) { const response = await rest.post('/api/auth/login', { user, password }); return response?.success ?? false; } export async function is_first_login(user) { const response = await rest.post('/api/auth/first-login', { user }); return response?.is_first ?? false; }