Back

Magic URL Caching on Deleted Users

  • 1
  • Auth
  • Web
  • Cloud
Goldiez
22 Feb, 2025, 14:12

Hey! I am using Appwrite with NextJS. I am using the Magic URL which is working fine as long as the user never existed in my DB, during testing, i have deleted my user (my email) to re test after changes except even after waiting over an hour, re using that email doesn't prompt the email.

It works fine for new emails and existing emails that to login.. Is there some way of checking if emails are partially stored somewhere withouth me knowing

TL;DR
Issue: Magic URL emails are not being sent to deleted users in the system. Solution: The user might not be receiving the magic URL email because the email address is associated with a deleted user. When reusing an email that was previously registered and then deleted, the email is not being prompted. The system seems to cache email addresses, causing the issue. Try verifying if the email is being partially stored or cached in the system inadvertently. Additionally, ensure there are no server errors related to the project by sharing the project ID with the support team for a quick check.
Meldiron
22 Feb, 2025, 14:14

Heyy 👋 You should be able to request another magicURL without an issue, the rate limit is something like 10 per hour, so a few tries are prefetcly fine to do. Do you not recieve those either?

Is there any error in response of createMagicURLToken? Any change it got into the spam folder? Did you delete the user, or just block him?

You can also share your project ID with me and I can quicly ensure there wasn't any server error related to your project.

Goldiez
22 Feb, 2025, 14:27

Hey! I deleted the user so the Auth section shows no registered user.

I can see my POST shows 200 POST /api/auth/magic 200 in 682ms But the email is going nowhere.

I should also note, using an email i used before does create the user just doesn't send the email.

I tried with a brand new email i haven't used in this app and got the email instantly.

My projectId is 67b9920300032b646aae

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more