Replace KeyboardAvoidingView with KeyboardAwareScrollView, update dependencies, and handle login 401 error logging

This commit is contained in:
2026-05-13 09:44:58 +02:00
parent e8e76cdf8b
commit 26a4d0144c
4 changed files with 1356 additions and 1278 deletions

View File

@@ -44,8 +44,11 @@ api.interceptors.response.use(
const originalRequest = error.config;
if (error.response) {
console.error('[API ERROR]', error.response.status, error.response.data);
const isLoginRequest = originalRequest?.url?.includes('/user/login');
if (!(error.response.status === 401 && isLoginRequest)) {
console.error('[API ERROR]', error.response.status, error.response.data);
}
// If we receive 401 (Unauthorized), we might want to force logout
if (error.response.status === 401) {
// TODO: Here you can add logic to redirect to login screen if needed