# Ash Framework: Magic Link Auth behavior (p121)

**URL:** <https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653>\
**Category:** PragProg Customers\
**Tags:** book-ash-framework, errata\
**Created:** [10 June 2025 19:09 UTC](https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653 "2025-06-10T19:09:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlooney](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mlooney/32/7470_2.png) [@mlooney](https://forum.devtalk.com/u/mlooney)\
**Post date:** [10 June 2025 19:09 UTC](https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653/1 "2025-06-10T19:09:32Z")

</div>

Running through the example, clicking on an already-used magic link email brings me to the magic link “sign in” page, clicking the magic “sign in” button does nothing, though no error warnings are generated as described by debug\_authentication setting (a tiny debug message thus: `[debug] Claim %{"jti" => "blah blah"} did not pass validation`.)

Additionally, trying to use the magic link sign-in with a nonexistent user, will indeed generate the magic link email and associated magic link (which also works when used, creating a new user). Is this expected?

Versions

```auto
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.18.4 (compiled with Erlang/OTP 27)

```

---

<div class="post-metadata">

**Author:** ![sevenseacat](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sevenseacat/32/5897_2.png) [@sevenseacat](https://forum.devtalk.com/u/sevenseacat)\
**Post date:** [11 June 2025 10:27 UTC](https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653/2 "2025-06-11T10:27:40Z")

</div>

You don’t see the warning in your logs? Like

 ![Screenshot 2025-06-11 at 6.25.47 pm](https://forum.devtalk.com/uploads/default/original/2X/9/904e2545d91e51d5353b48876494f355b6ca38b1.jpeg)

Did you restart your dev server after changing the debug config in `dev.exs`?

And yes, by default registration is enabled for magic links, so entering a non-existent email address will send a link to sign in and create that account. You can disable this in your `magic_link` config in your User resource, by setting `registration_enabled? false`.

---

<div class="post-metadata">

**Author:** ![mlooney](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mlooney/32/7470_2.png) [@mlooney](https://forum.devtalk.com/u/mlooney)\
**Post date:** [11 June 2025 15:07 UTC](https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653/3 "2025-06-11T15:07:52Z")

</div>

yes, i restarted, and see the warning about auth debug mode too. i’m as surprised as you are 🙂

good to know about the magic link behavior.

what versions are you using yourself?

---

<div class="post-metadata">

**Author:** ![sevenseacat](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sevenseacat/32/5897_2.png) [@sevenseacat](https://forum.devtalk.com/u/sevenseacat)\
**Post date:** [18 June 2025 04:10 UTC](https://forum.devtalk.com/t/ash-framework-magic-link-auth-behavior-p121/202653/4 "2025-06-18T04:10:40Z")

</div>

I think the debug message/button-do-nothing should be fixed in the main branch of AshAuthentication now, and will be released in a few days.
