[GH-ISSUE #5204] [bug]: Email shown in profile is outdated, and cannot be updated #1986

Closed
opened 2026-03-16 22:45:36 +03:00 by kerem · 3 comments
Owner

Originally created by @evenkov on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5204

Originally assigned to: @nivedin on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

Windows

Bug Description

Problem

After changing my primary email address in GitHub, Hoppscotch continues to show my old email address in the profile.

I have done the following steps:

  • Set the new email as primary, verified, and public in GitHub
  • Removed the old email as primary (but kept it as a secondary)
  • Revoked Hoppscotch's OAuth access in GitHub
  • Logged in again via GitHub

Still, Hoppscotch displays the old email address in my profile.

GitHub API Findings

I made a call to https://api.github.com/user/emails and confirmed that:

  • The correct new email is listed with "primary": true, "verified": true, and "visibility": "public"
  • However, it is the last email in the array
  • The email shown by Hoppscotch is the second one, which was previously my primary email

➡️ This strongly suggests that Hoppscotch selects the email based on index (e.g. emails[1]) or uses a cached email, instead of selecting the email object where primary === true.

Additional Bug: Manual email change fails

When I try to manually update the email from my Hoppscotch profile:

  • A GitHub Authentication popup appears
  • After completing authentication, I get the error:
    "Something went wrong"
  • The email is not updated

Expected Behavior

  • Hoppscotch should retrieve and display the primary email from the GitHub /user/emails response
  • If manual update is allowed, it should complete successfully or show a meaningful error

Suggested Fix

  • Update the logic to select email by checking primary === true
  • Allow manual update of email (or make it editable if it's only used for display)
  • Optionally, add a "Refresh from GitHub" button to force sync profile data

Thanks!

Let me know if I can help test anything further — this issue affects GitHub-authenticated users who change their email.

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @evenkov on GitHub (Jun 26, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5204 Originally assigned to: @nivedin on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System Windows ### Bug Description #### Problem After changing my **primary email address in GitHub**, Hoppscotch continues to show my **old email address** in the profile. I have done the following steps: - Set the new email as **primary**, **verified**, and **public** in GitHub - Removed the old email as primary (but kept it as a secondary) - Revoked Hoppscotch's OAuth access in GitHub - Logged in again via GitHub Still, Hoppscotch displays the **old email address** in my profile. #### GitHub API Findings I made a call to `https://api.github.com/user/emails` and confirmed that: - The correct new email is listed with `"primary": true`, `"verified": true`, and `"visibility": "public"` - However, it is the **last email in the array** - The email shown by Hoppscotch is the **second one**, which was previously my primary email ➡️ This strongly suggests that Hoppscotch selects the email based on index (e.g. `emails[1]`) or uses a cached email, instead of selecting the email object where `primary === true`. #### Additional Bug: Manual email change fails When I try to manually update the email from my Hoppscotch profile: - A GitHub Authentication popup appears - After completing authentication, I get the error: **"Something went wrong"** - The email is not updated #### Expected Behavior - Hoppscotch should retrieve and display the `primary` email from the GitHub `/user/emails` response - If manual update is allowed, it should complete successfully or show a meaningful error #### Suggested Fix - Update the logic to select email by checking `primary === true` - Allow manual update of email (or make it editable if it's only used for display) - Optionally, add a "Refresh from GitHub" button to force sync profile data #### Thanks! Let me know if I can help test anything further — this issue affects GitHub-authenticated users who change their email. ### Deployment Type Hoppscotch Cloud ### Version _No response_
kerem 2026-03-16 22:45:36 +03:00
Author
Owner

@nivedin commented on GitHub (Jul 15, 2025):

@evenkov Thank you for the detailed explanation, can you confirm that the new email you are setting is not related to any other active account previously created in hoppscotch.

With regarding email not showing the updated GitHub email, this is expected since we have account linked to each email and provider id, you can update the email from profile page just that as I mentioned above the new email should not be not be linked with any other account in hoppscotch.

We have a PR opened to add proper error message if the the request fail, thank you for bringing this up

<!-- gh-comment-id:3072993442 --> @nivedin commented on GitHub (Jul 15, 2025): @evenkov Thank you for the detailed explanation, can you confirm that the new email you are setting is not related to any other active account previously created in hoppscotch. With regarding email not showing the updated GitHub email, this is expected since we have account linked to each email and provider id, you can update the email from profile page just that as I mentioned above the new email should not be not be linked with any other account in hoppscotch. We have a [PR](https://github.com/hoppscotch/hoppscotch/pull/5247) opened to add proper error message if the the request fail, thank you for bringing this up
Author
Owner

@evenkov commented on GitHub (Jul 15, 2025):

Yes, I can confirm that the new email address is not used previous in any hoppscotch account. This is a completely new email address of mine that I'm gradually starting to use for work.
As I described above - I was tried to update my email address manually from my profile, but there raise an error with message Something went wrong

<!-- gh-comment-id:3073010257 --> @evenkov commented on GitHub (Jul 15, 2025): Yes, I can confirm that the new email address is not used previous in any **hoppscotch** account. This is a completely new email address of mine that I'm gradually starting to use for work. As I described above - I was tried to update my email address manually from my profile, but there raise an error with message `Something went wrong`
Author
Owner

@liyasthomas commented on GitHub (Jul 30, 2025):

This issue has been resolved in the latest version.

<!-- gh-comment-id:3136240174 --> @liyasthomas commented on GitHub (Jul 30, 2025): This issue has been resolved in the latest version.
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#1986
No description provided.