# Magic Link not loggin in users

**URL:** <https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038>\
**Category:** Developer help\
**Created:** [July 22, 2020, 5:40pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038 "2020-07-22T17:40:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![BryChan](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BryChan](https://forum.ghost.org/u/BryChan)\
**Post date:** [July 22, 2020, 5:40pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/1 "2020-07-22T17:40:37Z")

</div>

- [https://bryanchandler.com](https://bryanchandler.com/)
- v3.25.0
- Digital Ocean preconfigured dropplet
- node v12.18.0
- MySQL
- Ubuntu 18.04.4 LTS
- Chromium

I’m testing the subscription feature of Casper 3.0.12. I have Mailgun configured for transnational emails via config.production.json, and Mailgun is showing that the signup/login emails are sending. I’ve received the subscription and login emails to my test accounts, but when I click the link in the email, it doesn’t seems to sign in the user.  
When I click the link for subscribing, it takes me to my page, shows the green bar up top saying “You’ve successfully subscribed…” but the subscribe button still exists and the member only posts are still hidden. This is the same with the login email.  
I do see the members added to my list.

What can I check?

Thanks.

[UPDATE] ghost log shows

WARN Cookie ghost-members-ssr not found  
INFO INFO “GET /?action=subscribe&success=false” 200 80ms  
WARN jwt expired

This has to be what the issue is. Any advice?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 23, 2020, 11:01am UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/2 "2020-07-23T11:01:18Z")

</div>

> [@BryChan](#):
>
> INFO INFO “GET /?action=subscribe&success=false” 200 80ms

Hey @BryChan, the above log makes me think you’re not clicking the link in time. Confirmation links sent in emails have a 10 minute expiry time for security reasons, the subscriber need to click the link within that 10 minute window to be successful 👍

---

<div class="post-metadata">

**Author:** ![BryChan](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BryChan](https://forum.ghost.org/u/BryChan)\
**Post date:** [July 23, 2020, 12:53pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/3 "2020-07-23T12:53:33Z")

</div>

Thanks David,

I’m clicking the link within 2 minutes, so that can’t be the issue.

I get the green bar on top when I click the subscribe link saying “You’ve successfully subscribed…” but then the page doesn’t act like that account is. I can click subscribe, click the link that’s emailed to log in over and over again. Just never actually logs me in.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 23, 2020, 2:19pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/4 "2020-07-23T14:19:57Z")

</div>

Maybe it’s worth making sure your Ghost installation is up to date? I think there’s been some more recent versions of Ghost than what you have. They could contain bug fixes for this.

---

<div class="post-metadata">

**Author:** ![BryChan](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BryChan](https://forum.ghost.org/u/BryChan)\
**Post date:** [July 23, 2020, 2:39pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/5 "2020-07-23T14:39:40Z")

</div>

Updated to

Ghost-CLI version: 1.14.1  
Ghost version: 3.26.1 (at /var/www/ghost)

No change.  
Last log:  
[2020-07-23 14:35:28] INFO “GET /?action=signin&success=true” 200 108ms

It sure thinks it’s working, but it isn’t. I’ve tried multiple browsers, different IPs via VPN…

It’s as though it’s “signing in” the user, but not serving the user the page it would if they were signed in.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 24, 2020, 8:27am UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/6 "2020-07-24T08:27:58Z")

</div>

That log sounds better. Can I ask if there are any JavaScript errors on the page? They could be causing the listeners to break when the new subscriber lands on the page

---

<div class="post-metadata">

**Author:** ![BryChan](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BryChan](https://forum.ghost.org/u/BryChan)\
**Post date:** [July 29, 2020, 3:31pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/7 "2020-07-29T15:31:46Z")

</div>

No errors. I’ve tried the login/subscribe link in Chrome, Chromium, Brave, old IE and Firefox.

---

<div class="post-metadata">

**Author:** ![BryChan](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BryChan](https://forum.ghost.org/u/BryChan)\
**Post date:** [July 29, 2020, 6:26pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/8 "2020-07-29T18:26:59Z")

</div>

Hey @DavidDarnes,

I created an entirely new Digital Ocean Dropplet using their pre-built Ghost v3.27.0  
Created two test posts, one public, and one members-only.

I recorded a video of myself going through the subscribing process.

I then attempted to subscribe, and I’m getting the exact same behaviour from a completely different install. What am I missing here?

---

<div class="post-metadata">

**Author:** ![alec](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/alec/32/32206_2.png) [@alec](https://forum.ghost.org/u/alec)\
**Post date:** [October 23, 2024, 7:08am UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/9 "2024-10-23T07:08:09Z")

</div>

Any Update? I had the same error

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [October 23, 2024, 12:26pm UTC](https://forum.ghost.org/t/magic-link-not-loggin-in-users/16038/10 "2024-10-23T12:26:07Z")

</div>

This is four years old. Please start a new topic with details of you need help.
