mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3385] [MERGED] fix: blank screen in admin dashboard when failing to refresh tokens or when cookies are expired and user not fully logged out in such cases #4368
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3385
Author: @joeljstephen
Created: 9/22/2023
Status: ✅ Merged
Merged: 10/9/2023
Merged by: @AndrewBastin
Base:
release/2023.8.2← Head:fix/dashboard-auth-errors📝 Commits (5)
84b2ef6fix: dashboard logs out user when cookie expires or is unauthorizedfa08ab9fix: handles the 401 error thrown when trying to refresh tokens55cdd03chore: updated wrong logic when returning state in refresh token function544cb83feat: introduced auth exchange to urql client to check for errors on each backend call985a214fix: prevent multiple window reloads📊 Changes
5 files changed (+2926 additions, -550 deletions)
View changed files
📝
packages/hoppscotch-sh-admin/package.json(+2 -1)📝
packages/hoppscotch-sh-admin/src/components.d.ts(+30 -33)📝
packages/hoppscotch-sh-admin/src/helpers/auth.ts(+45 -25)📝
packages/hoppscotch-sh-admin/src/main.ts(+26 -2)📝
pnpm-lock.yaml(+2823 -489)📄 Description
Ticket
Closes HFE-222
Description
This PR focuses on fixing an issue in the Admin Dashboard where the user isn't fully logged out ( only the frontend handles the situation without sending the appropriate calls to the backend ) and is either shown the login page or a blank screen when any of the following conditions occur:
Objectives
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.