diff --git a/mobile/src/api/api.ts b/mobile/src/api/api.ts index 9cd35af7..34a0ed0a 100644 --- a/mobile/src/api/api.ts +++ b/mobile/src/api/api.ts @@ -33,6 +33,7 @@ export interface AuthResponse { telephone?: string; role?: string; session_id?: string; + must_change_password?: boolean; }; } diff --git a/mobile/src/auth/AuthContext.tsx b/mobile/src/auth/AuthContext.tsx index f2d38f13..a6ad057e 100644 --- a/mobile/src/auth/AuthContext.tsx +++ b/mobile/src/auth/AuthContext.tsx @@ -131,6 +131,7 @@ export function AuthProvider({ children }: { children: ReactNode }) { role, isLoading: false, isAuthenticated: true, + mustChangePassword: false, }); };