[GH-ISSUE #3721] [bug]: Can't Log in to new Desktop App on Linux #1290

Closed
opened 2026-03-16 19:38:27 +03:00 by kerem · 24 comments
Owner

Originally created by @carsonbird on GitHub (Jan 4, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3721

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I try to log in to the desktop app using my email and a magic link on my Linux machine, I can't.

Details:

  • Ubuntu 23.10 with KDE Plasma.
  • Using the Hoppscotch Desktop App (the thing that's in alpha)
  • Attempt to log into my hoppscotch.io workspace through the desktop app, using a magic link and my email address. No Google sign-in or anything, just a direct email address.
  • I am receiving the magic link emails, but, number 1, clicking them doesn't link into the desktop app, it opens in the browser; and number 2, the browser says "your're logged in, you can go back to the app now" - but the app hasn't logged in.
  • Inspecting the desktop app console, I see the following errors. These appear when the app is initially loaded, long before I attempt to sign in. Not sure if they're related.
  • Attempting to save the magic link as a desktop shortcut, then force it to be opened with Hoppscotch also does nothing.
[Error] TypeError: undefined is not an object (evaluating 'gapi.iframes.getContext')
	callback (index-95f3a832.js:3949:360)
	(anonymous function) (api.js:29)
	Ja (api.js:21:705)
	E (api.js:28:502)
	(anonymous function) (api.js:29:83)
	(anonymous function) (api.js:29:146)
	Global Code (cb=gapi.loaded_0:1)
[Error] Error: B`tauri
	(anonymous function) (api.js:29:638)
	(anonymous function) (api.js:29)
	Ja (api.js:21:705)
	E (api.js:28:502)
	(anonymous function) (api.js:29:83)
	(anonymous function) (api.js:29:146)
	Global Code (cb=gapi.loaded_1:1)
[Error] Cross-origin redirection to http://developers.google.com/ denied by Cross-Origin Resource Sharing policy: Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 301
[Error] XMLHttpRequest cannot load https://apis.google.com/_/jserror?<<REDACTED>> due to access control checks.
[Error] Failed to load resource: Cross-origin redirection to http://developers.google.com/ denied by Cross-Origin Resource Sharing policy: Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 301 (jserror, line 0)

So the issues seem to be that either the sign-in is being blocked by CORS, the magic-link webpage isn't able to talk to the desktop app and give it the authenticated stuff, or that the desktop app isn't receiving deep links from the magic link in the email.

Steps to reproduce

See the above.

Environment

Production

Version

Cloud

Originally created by @carsonbird on GitHub (Jan 4, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3721 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I try to log in to the desktop app using my email and a magic link on my Linux machine, I can't. **Details:** - Ubuntu 23.10 with KDE Plasma. - Using the Hoppscotch Desktop App (the thing that's in alpha) - Attempt to log into my hoppscotch.io workspace through the desktop app, using a magic link and my email address. No Google sign-in or anything, just a direct email address. - I am receiving the magic link emails, but, number 1, clicking them doesn't link into the desktop app, it opens in the browser; and number 2, the browser says "your're logged in, you can go back to the app now" - but the app hasn't logged in. - Inspecting the desktop app console, I see the following errors. These appear when the app is initially loaded, long before I attempt to sign in. Not sure if they're related. - Attempting to save the magic link as a desktop shortcut, then force it to be opened with Hoppscotch also does nothing. ``` [Error] TypeError: undefined is not an object (evaluating 'gapi.iframes.getContext') callback (index-95f3a832.js:3949:360) (anonymous function) (api.js:29) Ja (api.js:21:705) E (api.js:28:502) (anonymous function) (api.js:29:83) (anonymous function) (api.js:29:146) Global Code (cb=gapi.loaded_0:1) ``` ``` [Error] Error: B`tauri (anonymous function) (api.js:29:638) (anonymous function) (api.js:29) Ja (api.js:21:705) E (api.js:28:502) (anonymous function) (api.js:29:83) (anonymous function) (api.js:29:146) Global Code (cb=gapi.loaded_1:1) ``` ``` [Error] Cross-origin redirection to http://developers.google.com/ denied by Cross-Origin Resource Sharing policy: Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 301 ``` ``` [Error] XMLHttpRequest cannot load https://apis.google.com/_/jserror?<<REDACTED>> due to access control checks. ``` ``` [Error] Failed to load resource: Cross-origin redirection to http://developers.google.com/ denied by Cross-Origin Resource Sharing policy: Origin tauri://localhost is not allowed by Access-Control-Allow-Origin. Status code: 301 (jserror, line 0) ``` So the issues seem to be that either the sign-in is being blocked by CORS, the magic-link webpage isn't able to talk to the desktop app and give it the authenticated stuff, or that the desktop app isn't receiving deep links from the magic link in the email. ### Steps to reproduce See the above. ### Environment Production ### Version Cloud
kerem 2026-03-16 19:38:27 +03:00
Author
Owner

@carsonbird commented on GitHub (Jan 4, 2024):

Some additional information - I pasted the link into a private session in a new browser, so there wouldn't be any cookie/caching issues. The browser-portion of the authentication seemed to work fine - and then upon returning the desktop app and inspecting the network calls, I can see that the app did successfully receive the login/authentication information from somewhere, because (among other things) it proceeds to make a POST request to https://identitytoolkit.googleapis.com/v1/accounts:lookup?key=XXX and it does include information it could have only received from the authentication flow (like my name). See below for more. However, the app doesn't finish the login process, and just sits there on the "magic link" popup. Clicking "dismiss" dismisses the dialog, but doesn't finish the login.

POST https://identitytoolkit.googleapis.com/v1/accounts:lookup?key=XXX

{
  "kind": "identitytoolkit#GetAccountInfoResponse",
  "users": [
    {
      "localId": "XXX",
      "email": "XXX",
      "displayName": "XXX",
      "emailVerified": true,
      "providerUserInfo": [
        {
          "providerId": "password",
          "displayName": "XXX",
          "federatedId": "XXX",
          "email": "XXX",
          "rawId": "XXX"
        }
      ],
      "validSince": "1703634711",
      "lastLoginAt": "XXX",
      "createdAt": "XXX",
      "emailLinkSignin": true,
      "lastRefreshAt": "2024-01-04T22:55:19.150Z"
    }
  ]
}
<!-- gh-comment-id:1877883791 --> @carsonbird commented on GitHub (Jan 4, 2024): Some additional information - I pasted the link into a private session in a new browser, so there wouldn't be any cookie/caching issues. The browser-portion of the authentication seemed to work fine - and then upon returning the desktop app and inspecting the network calls, I can see that the app did successfully receive the login/authentication information from somewhere, because (among other things) it proceeds to make a POST request to https://identitytoolkit.googleapis.com/v1/accounts:lookup?key=XXX and it does include information it could have only received from the authentication flow (like my name). See below for more. However, the app doesn't finish the login process, and just sits there on the "magic link" popup. Clicking "dismiss" dismisses the dialog, but doesn't finish the login. ```json POST https://identitytoolkit.googleapis.com/v1/accounts:lookup?key=XXX { "kind": "identitytoolkit#GetAccountInfoResponse", "users": [ { "localId": "XXX", "email": "XXX", "displayName": "XXX", "emailVerified": true, "providerUserInfo": [ { "providerId": "password", "displayName": "XXX", "federatedId": "XXX", "email": "XXX", "rawId": "XXX" } ], "validSince": "1703634711", "lastLoginAt": "XXX", "createdAt": "XXX", "emailLinkSignin": true, "lastRefreshAt": "2024-01-04T22:55:19.150Z" } ] } ```
Author
Owner

@vieiraes commented on GitHub (Jan 15, 2024):

the same happens here

<!-- gh-comment-id:1892343123 --> @vieiraes commented on GitHub (Jan 15, 2024): the same happens here
Author
Owner

@carsonbird commented on GitHub (Feb 23, 2024):

Aaand, still happening. Is there a workaround for this, or is the desktop app currently un-login-able for everyone?

<!-- gh-comment-id:1960602797 --> @carsonbird commented on GitHub (Feb 23, 2024): Aaand, still happening. Is there a workaround for this, or is the desktop app currently un-login-able for everyone?
Author
Owner

@luancgs commented on GitHub (Mar 15, 2024):

Also unable to login on linux desktop app. Using Linux Mint 21.1 with Cinnamon and trying to login using google SSO, the app opens the google page on my browser, but after returning, it just loads forever.

<!-- gh-comment-id:1999477339 --> @luancgs commented on GitHub (Mar 15, 2024): Also unable to login on linux desktop app. Using Linux Mint 21.1 with Cinnamon and trying to login using google SSO, the app opens the google page on my browser, but after returning, it just loads forever.
Author
Owner

@adaniloff commented on GitHub (Mar 25, 2024):

Same here, unable to login on my PopOs (using Pop!_OS 22.04 LTS). Infinite loading when I try to use google or email auth.

<!-- gh-comment-id:2017586265 --> @adaniloff commented on GitHub (Mar 25, 2024): Same here, unable to login on my PopOs (using Pop!_OS 22.04 LTS). Infinite loading when I try to use google or email auth.
Author
Owner

@rochacbruno commented on GitHub (Mar 25, 2024):

same here, just tried to login from arch linux, doesnt work with any of the login methods.

v2023.12.6

<!-- gh-comment-id:2018311687 --> @rochacbruno commented on GitHub (Mar 25, 2024): same here, just tried to login from arch linux, doesnt work with any of the login methods. v2023.12.6
Author
Owner

@HeIIow2 commented on GitHub (Apr 4, 2024):

I got the same issue.

<!-- gh-comment-id:2037146896 --> @HeIIow2 commented on GitHub (Apr 4, 2024): I got the same issue.
Author
Owner

@bfsgr commented on GitHub (Apr 6, 2024):

Probably related to https://github.com/tauri-apps/tauri/issues/2327

<!-- gh-comment-id:2040890385 --> @bfsgr commented on GitHub (Apr 6, 2024): Probably related to https://github.com/tauri-apps/tauri/issues/2327
Author
Owner

@noomly commented on GitHub (May 15, 2024):

I'm also affected by this issue on Archlinux. Still no workaround?

<!-- gh-comment-id:2112340540 --> @noomly commented on GitHub (May 15, 2024): I'm also affected by this issue on Archlinux. Still no workaround?
Author
Owner

@HeIIow2 commented on GitHub (May 28, 2024):

I'm also affected by this issue on Archlinux. Still no workaround?

No not yet. You could try logging in on web and copying the cookies and all the data. If you do so successfully you could also write a script that can be executed do do this but I don't know. Its really bad.

<!-- gh-comment-id:2134706129 --> @HeIIow2 commented on GitHub (May 28, 2024): > I'm also affected by this issue on Archlinux. Still no workaround? No not yet. You could try logging in on web and copying the cookies and all the data. If you do so successfully you could also write a script that can be executed do do this but I don't know. Its really bad.
Author
Owner

@noomly commented on GitHub (May 28, 2024):

I've switched to Postman in the meantime. I'll try again if ever this issue gets some attention from the developers.

<!-- gh-comment-id:2135289945 --> @noomly commented on GitHub (May 28, 2024): I've switched to Postman in the meantime. I'll try again if ever this issue gets some attention from the developers.
Author
Owner

@baaslaawe commented on GitHub (Jun 2, 2024):

linux Desktop not work login we have try many times for linux like ubuntu Desktop not close login it loading

<!-- gh-comment-id:2144040987 --> @baaslaawe commented on GitHub (Jun 2, 2024): linux Desktop not work login we have try many times for linux like ubuntu Desktop not close login it loading
Author
Owner

@AlphaNecron commented on GitHub (Jun 29, 2024):

Bump, having been struggling with this bug for a while on Arch Linux, I guess the only workaround here is to patch webkit2gtk to disable web-security but that also means lowered security (untested anyways).

<!-- gh-comment-id:2198280230 --> @AlphaNecron commented on GitHub (Jun 29, 2024): Bump, having been struggling with this bug for a while on Arch Linux, I guess the only workaround here is to patch `webkit2gtk` to disable `web-security` but that also means lowered security (untested anyways).
Author
Owner

@AlphaNecron commented on GitHub (Jun 29, 2024):

Technically, I can just use Hoppscotch anonymously but obviously no syncing lol.

<!-- gh-comment-id:2198280679 --> @AlphaNecron commented on GitHub (Jun 29, 2024): Technically, I can just use Hoppscotch anonymously but obviously no syncing lol.
Author
Owner

@coud commented on GitHub (Jul 3, 2024):

I can't login as well. It seems it was able to communicate to the app but the app is stuck on loading.
image

<!-- gh-comment-id:2206010200 --> @coud commented on GitHub (Jul 3, 2024): I can't login as well. It seems it was able to communicate to the app but the app is stuck on loading. ![image](https://github.com/hoppscotch/hoppscotch/assets/4945814/132bc96a-54c6-4256-a4dd-57f17bbeee7e)
Author
Owner

@mirzahilmi commented on GitHub (Jul 10, 2024):

same issue, im using NixOS 24.05

<!-- gh-comment-id:2219106426 --> @mirzahilmi commented on GitHub (Jul 10, 2024): same issue, im using NixOS 24.05
Author
Owner

@0xi4o commented on GitHub (Sep 2, 2024):

I was able to get login working by copying the link, pasting it in Firefox, and logging in from there. Then it was able to connect to the desktop app and log me in. Didn't work in other browsers so it has to be Firefox. YMMV.

<!-- gh-comment-id:2323711433 --> @0xi4o commented on GitHub (Sep 2, 2024): I was able to get login working by copying the link, pasting it in Firefox, and logging in from there. Then it was able to connect to the desktop app and log me in. Didn't work in other browsers so it has to be Firefox. YMMV.
Author
Owner

@rochacbruno commented on GitHub (Sep 2, 2024):

I confirm ^, after downloading an upgraded version of the AppImage it can login now if I do using Firefox.

<!-- gh-comment-id:2324384852 --> @rochacbruno commented on GitHub (Sep 2, 2024): I confirm ^, after downloading an upgraded version of the AppImage it can login now if I do using Firefox.
Author
Owner

@nicolasCinzer commented on GitHub (Oct 18, 2024):

I agree with @rochacbruno, if a try to login using Firefox as browser, the login is successfull

<!-- gh-comment-id:2421088548 --> @nicolasCinzer commented on GitHub (Oct 18, 2024): I agree with @rochacbruno, if a try to login using Firefox as browser, the login is successfull
Author
Owner

@kayprogrammer commented on GitHub (Nov 28, 2024):

I agree with @rochacbruno, if a try to login using Firefox as browser, the login is successfull

Worked for me. Thank you very much

<!-- gh-comment-id:2505919185 --> @kayprogrammer commented on GitHub (Nov 28, 2024): > I agree with @rochacbruno, if a try to login using Firefox as browser, the login is successfull Worked for me. Thank you very much
Author
Owner

@carsonbird commented on GitHub (Dec 3, 2024):

Just downloaded the latest appimage, attempted to use GitHub login through Firefox, doesn't work. Gets pretty close, the Hoppscotch app can see that the login flow occurred in Firefox, so they're communicating. But the Hoppscotch app just sits and spins in the "Login to Hoppscotch" modal after that.

<!-- gh-comment-id:2515584086 --> @carsonbird commented on GitHub (Dec 3, 2024): Just downloaded the latest appimage, attempted to use GitHub login through Firefox, doesn't work. Gets pretty close, the Hoppscotch app can see that the login flow occurred in Firefox, so they're communicating. But the Hoppscotch app just sits and spins in the "Login to Hoppscotch" modal after that.
Author
Owner

@carsonbird commented on GitHub (Dec 3, 2024):

The app also says that it opens my browser (Brave), but it doesn't. Clicking the "Open Again" button doesn't do anything either.

<!-- gh-comment-id:2515585214 --> @carsonbird commented on GitHub (Dec 3, 2024): The app also says that it opens my browser (Brave), but it doesn't. Clicking the "Open Again" button doesn't do anything either.
Author
Owner

@carsonbird commented on GitHub (Dec 3, 2024):

Network shows that the authentication information is received by the app. So the issue is probably in the desktop app itself, and how it handles the received data. This was by copy-pasting the link into Brave browser, so this isn't an issue directly related to Firefox, as other have expressed above. What was everyone else's login method (Google, Github, email, etc?)

<!-- gh-comment-id:2515588633 --> @carsonbird commented on GitHub (Dec 3, 2024): Network shows that the authentication information is received by the app. So the issue is probably in the desktop app itself, and how it handles the received data. This was by copy-pasting the link into Brave browser, so this isn't an issue directly related to Firefox, as other have expressed above. What was everyone else's login method (Google, Github, email, etc?)
Author
Owner

@liyasthomas commented on GitHub (Mar 4, 2025):

Thanks for your patience and valuable feedback. We’ve fixed this bug in the latest release.
Download the latest builds and provide your valuable feedback.

Closing this ticket as this bug is now fixed in the recent version. Please feel free to reach out if you have any other concerns.

<!-- gh-comment-id:2696977795 --> @liyasthomas commented on GitHub (Mar 4, 2025): Thanks for your patience and valuable feedback. We’ve fixed this bug in the latest release. [Download the latest builds](https://hoppscotch.com/download) and provide your valuable feedback. Closing this ticket as this bug is now fixed in the recent version. Please feel free to reach out if you have any other concerns.
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#1290
No description provided.