Refactor Protected and Public Routes for Consistent Loading UI; Enhance HomePage with User Company and Branch Details; Update LoginPage Layout; Introduce User Relations in Auth Services

This commit is contained in:
2025-10-03 17:52:56 +05:00
parent 531e2d2e7e
commit 0b024af454
31 changed files with 1770 additions and 115 deletions
+4 -2
View File
@@ -32,7 +32,10 @@ export const loginService = {
}
// Создать новую сессию
const { sessionId, accessToken } = await sessionService.create(user.id, metadata);
const { sessionId, accessToken } = await sessionService.create(
user.id,
metadata
);
// Вычислить дату истечения токена
const expiresAt = new Date();
@@ -48,4 +51,3 @@ export const loginService = {
};
},
};