[PR #3705] [MERGED] fix(selfhost-web): perform logout if the silent refresh attempt fails #4498

Closed
opened 2026-03-17 02:01:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3705
Author: @shipko
Created: 12/29/2023
Status: Merged
Merged: 1/23/2024
Merged by: @AndrewBastin

Base: release/2023.12.3Head: bugfix/logout-after-expired


📝 Commits (2)

  • ae700f1 fix(expired-token): logout user when refresh token is expired
  • 21c6695 chore: format with prettier

📊 Changes

1 file changed (+18 additions, -13 deletions)

View changed files

📝 packages/hoppscotch-selfhost-web/src/platform/auth/auth.platform.ts (+18 -13)

📄 Description

Closes #3701

Description

This PR fixes the bug found in refresh token feature

  • Fix problem with refreshToken method when backend returns 401 code

  • When refreshToken returns false then completing the user session

  • Not Completed

  • Completed

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3705 **Author:** [@shipko](https://github.com/shipko) **Created:** 12/29/2023 **Status:** ✅ Merged **Merged:** 1/23/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.12.3` ← **Head:** `bugfix/logout-after-expired` --- ### 📝 Commits (2) - [`ae700f1`](https://github.com/hoppscotch/hoppscotch/commit/ae700f14e3d6b02168bac10b42097ae157ea3223) fix(expired-token): logout user when refresh token is expired - [`21c6695`](https://github.com/hoppscotch/hoppscotch/commit/21c6695dfd48620068a14872c3be056b937604cf) chore: format with prettier ### 📊 Changes **1 file changed** (+18 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-selfhost-web/src/platform/auth/auth.platform.ts` (+18 -13) </details> ### 📄 Description Closes #3701 ### Description This PR fixes the bug found in refresh token feature - Fix problem with refreshToken method when backend returns 401 code - When refreshToken returns false then completing the user session - [ ] Not Completed - [x] Completed ### Checks - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:01:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4498
No description provided.