Fix rejected Apple :

Submission ID: 1efcd8eb-7d68-4348-9925-43a8e1bd7d1e

Add:
-  app/(application)/terms-agreement.tsx

Fix:
- app/(application)/(user)/home.tsx
- app/(application)/_layout.tsx
- context/AuthContext.tsx
- ios/HIPMIBadungConnect/Info.plist
- screens/Authentication/LoginView.tsx
- screens/Authentication/RegisterView.tsx
- service/api-config.ts
- types/User.ts

### NO Issue
This commit is contained in:
2025-11-24 17:09:52 +08:00
parent 0c4deac6e2
commit 41e648d8f3
9 changed files with 199 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ type AuthContextType = {
registerUser: (userData: {
username: string;
nomor: string;
termsOfServiceAccepted: boolean;
}) => Promise<void>;
userData: (token: string) => Promise<any>;
};
@@ -154,10 +155,12 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
const registerUser = async (userData: {
username: string;
nomor: string;
termsOfServiceAccepted: boolean;
}) => {
setIsLoading(true);
try {
const response = await apiRegister({ data: userData });
console.log("response", response);
const { token } = response;
if (!response.success) {