5sControl / 5sControl/5s-frontend

[1h]The administrator account is loaded for a few seconds when logging in using worker credentials

Open
#974 0 comments 0 reactions 1 assignee Claimed by @kirilbaskakov View on GitHub
bug ESMIL Front QA done Stage ready v. 0.8.1
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Description**
На несколько секунд загружается аккаунт администратора после входа в систему под кредами рабочего

**Precondition**
Войти в учётную запись администратора и выйти из неё

**Steps to reproduce:**
1. Войти в систему, используя креды любого работника
2. Баг появляется

**Actual result:**
на несколько секунд загружается страница администратора, после чего появляется страница работника

**Expected result:**
сразу загружается аккаунт работника

**Attachments:**

https://github.com/user-attachments/assets/e8358e7f-e4a2-4290-bf8e-6ee2549e2614

**Environment**
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 131.0.6778.260
[stage.5scontrol.com/mobile](https://stage.5scontrol.com/mobile/)

Contributor guide

Open the contributing guide

Research direction

The issue describes a flash of the admin page before the worker page loads. Look at the authentication flow and routing logic, likely in components handling login and session state. Check for any cached user data or redirect delays. The linked pull request #979 (merged) may have addressed this, so review its changes to understand the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.