feat(auth): implement OTP login flow with toast notifications
feat(content): enhance detail view with dynamic content and comments feat(order): add polling for payment status in the payment view feat(user): update dashboard to display wallet and recent orders feat(user): improve orders view with dynamic order fetching and status mapping feat(api): create API modules for auth, content, order, user, and common functionalities refactor(request): implement a centralized request utility for API calls
This commit is contained in:
6
frontend/portal/src/api/auth.js
Normal file
6
frontend/portal/src/api/auth.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { request } from '../utils/request';
|
||||
|
||||
export const authApi = {
|
||||
sendOTP: (phone) => request('/auth/otp', { method: 'POST', body: { phone } }),
|
||||
login: (phone, otp) => request('/auth/login', { method: 'POST', body: { phone, otp } }),
|
||||
};
|
||||
Reference in New Issue
Block a user