Skip to content

Allow resending magic link when the token has expired #158

@ruudwalraven-ns

Description

@ruudwalraven-ns

When a magic link is sent to a user but the token has expired by the time they click it, the user lands on an error page. From there, they have to figure out what to do next on their own.

In our use case, we send magic links for convenience and would like to offer the user a way to resend a new magic link directly from that error state. When the user requests a new link, we can re-evaluate (after some time has passed) that they are still the same user we originally emailed.

Questions / Proposal

  1. What is the recommended way to handle expired magic links in this extension?
  2. Is it possible (or planned) to extend this feature so that the error page can include a form/button to resend a magic link?
  3. If this is not supported yet, would you accept a PR that adds:
    • A hook or callback on token-expired errors, or
    • A configurable component to render a “Resend magic link” form?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions