mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4184] [bug]: Self Host. Can not Login with Email. Clicked Magic link but 401 #1510
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#1510
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?
Originally created by @lfift on GitHub (Jul 13, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4184
Originally assigned to: @mirarifhasan on GitHub.
Is there an existing issue for this?
Current behavior
version: 2024.6.0


When I log in via email, the page prompts a 401 code after clicking the received MagicLink.
I'm using a self-signed SSL certificate
Steps to reproduce
1.Click to Login
2.Enter Email Address
3.Click Magic link
4.The page displays 401 and the browser console displays that there is a problem with the SSL certificate. Can't I use a self-signed certificate?
Environment
Deploy preview
Version
Self-hosted
@lfift commented on GitHub (Jul 17, 2024):
using AIO container
@nayelimdejesus commented on GitHub (Aug 6, 2024):
I would like to work on this issue.
@ngoc-minh-do commented on GitHub (Jul 18, 2025):
I have the same issue using AIO container
@faritor commented on GitHub (Jul 21, 2025):
use AIO image
i discovered the problem through the console of the browser. I use the http protocol, When requesting the interface of
:3170/v1/auth/verify, the returned http status code was401.postrequest body parameters format is{"token":"*****","deviceIdentifier":"*****"}how should I solve this problem
@mirarifhasan commented on GitHub (Jul 22, 2025):
Hey @faritor —
Could you let us know if increasing the
MAGIC_LINK_TOKEN_VALIDITYresolved the401error on your end?@ngoc-minh-do —
Would you mind sharing more detailed steps or context so we can try to reproduce the issue locally?
@lfift
Is this issue still occurring for you, or has it been resolved?
@faritor commented on GitHub (Jul 23, 2025):
Hi, @mirarifhasan ,
thank you for your reply. my configuration is as follows. according to the documentation, the email should expire within 3 days. however, from receiving the email to clicking to open it, it took no more than 3 minutes. I'm using the chrome browser, and the version is 138.0.7204.158
@mirarifhasan commented on GitHub (Jul 23, 2025):
@faritor
MAGIC_LINK_TOKEN_VALIDITYis in hours — thanks for pointing that out. We've checked the docs and will update the clarification shortly.We're also aware of a timezone-related issue affecting link validation, and we're aiming to address that in an upcoming release.
@faritor commented on GitHub (Jul 23, 2025):
Hi, @mirarifhasan ,
thank you for your reply. I'm looking forward to a fix. currently, I'm stuck at the email login stage and can't proceed to the next step of the experience.
@faritor commented on GitHub (Jul 23, 2025):
I think it's probably an issue with the expiration processing here. I set
MAGIC_LINK_TOKEN_VALIDITYto 8640000 and I logged in successfully.after successfully logging in, I noticed this error line in the log of the container. I'm not sure what impact it will have
@mirarifhasan commented on GitHub (Jul 23, 2025):
user_settings/settings_already_existsis a known behavior — no worries. The error occurs because the frontend is calling the same API twice, which leads to a duplicate "user settings already exist" response from the backend. We're aware of it and it's not something to be concerned about.Yes, increasing the
MAGIC_LINK_TOKEN_VALIDITYis a good workaround for now and helps ensure smoother usage. That said, we're aware of the timezone handling issue and plan to address it soon to make the experience more reliable.@liyasthomas commented on GitHub (Jul 30, 2025):
This issue has been resolved in the latest version.