From ce74c16f5d00a172b00628da1cb4ce56e5d92a2b Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 1 Mar 2026 16:35:01 +0100 Subject: [PATCH] chore: add change password --- mobile/src/api/api.ts | 1 + mobile/src/auth/AuthContext.tsx | 1 + 2 files changed, 2 insertions(+) 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, }); };