Fix rejected Apple

Add:
-  utils/viersionBadge.ts

Fix:
- app.config.js
- context/AuthContext.tsx
- ios/HIPMIBadungConnect/Info.plist
- screens/Authentication/LoginView.tsx
- screens/Authentication/VerificationView.tsx
- service/api-config.ts

### No Issue
This commit is contained in:
2025-12-03 17:23:12 +08:00
parent 858b441a8c
commit a93f97ed6a
7 changed files with 63 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ apiConfig.interceptors.request.use(
async (config) => {
console.log("API_BASE_URL >>", API_BASE_URL);
const token = await AsyncStorage.getItem("authToken");
// console.log("[TOKEN] >>", token);
if (token) {
// config.timeout = 10000;
config.headers["Content-Type"] = "application/json";
@@ -33,7 +34,7 @@ export async function apiVersion() {
}
export async function apiLogin({ nomor }: { nomor: string }) {
const response = await apiConfig.post("/mobile/auth/login", {
const response = await apiConfig.post("/auth/mobile-login", {
nomor: nomor,
});
return response.data;;
@@ -45,7 +46,7 @@ export async function apiCheckCodeOtp({ kodeId }: { kodeId: string }) {
}
export async function apiValidationCode({ nomor }: { nomor: string }) {
const response = await apiConfig.post(`/auth/validasi`, {
const response = await apiConfig.post(`/auth/mobile-validasi`, {
nomor: nomor,
});
return response.data;
@@ -56,7 +57,7 @@ export async function apiRegister({
}: {
data: { nomor: string; username: string; termsOfServiceAccepted: boolean };
}) {
const response = await apiConfig.post(`/mobile/auth/register`, {
const response = await apiConfig.post(`/auth/mobile-register`, {
data: data,
});
return response.data;