/* * File: authAPI.ts * Description: API service for authentication using apisauce * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */ import { create } from 'apisauce'; import { BASE_URL } from '../../../constants/URLS'; import { buildHeaders } from '../../../../shared/src/utils/helpers/Api'; const api = create({ baseURL: BASE_URL, // TODO: Replace with actual endpoint timeout: 3000, }); /** * login - authenticates user with email and password */ export const authAPI = { login: (email: string, password: string,platform:string) => api.post('/api/auth/auth/login', { email, password,platform },buildHeaders()), // Add more endpoints as needed }; /* * End of File: authAPI.ts * Design & Developed by Tech4Biz Solutions * Copyright (c) Spurrin Innovations. All rights reserved. */