Skip to content

Notifications ​

Redot Core ships the email that delivers a passwordless login link and one-time code to a user during magic-link authentication. It is sent for you by the magic-link auth flow — you only need to touch it when you want to customize the email.

How it's used ​

When a user requests a magic link, the auth flow generates a login token and emails it. The message contains a Login Now button (the link) and a 6-character one-time code the user can type instead. Both expire after the configured window. You don't dispatch this notification yourself; the auth flow does. See Authentication.

Customizing the email ​

For wording, colors, or translations, edit the relevant translation strings and the published mail notification templates — the email text passes through __(), so it is fully translatable.

To replace the email entirely (different layout, extra channels, branding), pass your own notification class to the panel's magic-link feature:

php
use App\Notifications\CustomMagicLink;
use Redot\Auth\Features\MagicLink;

MagicLink::make()->notification(CustomMagicLink::class)

Your class receives the same three arguments as the default: the login token, the ready-to-use sign-in URL, and the number of minutes the link stays valid.

Options ​

  • expiresIn on the magic-link feature, falling back to auth.magic_link.expire — minutes until the link expires (default 15). Controls both the token's lifetime and the "expires in :minutes minutes" line.
  • app.name — interpolated into the subject line.

Proprietary — for use within the Redot Dashboard. Product site: redot.dev