Skip to content
Back

Magic Link token automatically consumed

  • 0
  • Auth
  • Cloud
Aurélien
26 Apr, 2026, 18:02

Hi, I'm using the Magic Link auth system with Appwrite Cloud and I'm running into huge issues getting users to log in successfully.

About 9 times out of 10, the link sent by email is reported as invalid or expired. When I look at all the session connection attempts, I can see they're always validated, but :

  • when I do manage to log in, I see a Chrome iOS (France) entry in the logs (that's me).
  • when I can't log in, I see that the reason is something else has already consumed the link, and the IP is systematically a Firefox / Windows (Finland) entry.

What can I do ? Where is this coming from ?

TL;DR
Developers are experiencing issues with Magic Link tokens being automatically consumed, causing login failures. The logs show that the tokens are being used by an unknown source ('Firefox / Windows (Finland)'), even though the sessions are validated. The developer is looking for a solution to prevent these unauthorized token consumptions. An investigation into the source of these unauthorized logins is needed to address the problem effectively.
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