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:
@@ -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 = {
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user