Skip to content

Email OTP Authentication via Clickable Links #14377

@bynov

Description

@bynov

Is this related to a new or existing framework?

Vue

Is this related to a new or existing API?

Authentication

Is this related to another service?

No response

Describe the feature you'd like to request

Currently, when using Email OTP authentication, users must:

  1. Enter their email and request a code
  2. Receive an email with a code
  3. Return to the same browser session
  4. Enter the code manually

This creates a problem when users want to complete the authentication by clicking a link in their email, as the authentication state is lost when opening the link in a new tab or after closing the browser.

We would like to be able to send verification emails with clickable links in addition to a code. For example:

Click here to sign in: https://app.example.com/auth/verify?token=12345678

Or you can fill in the code 12345678

This would allow users to complete the authentication by simply clicking the link in their email, regardless of which device they're using or whether they've closed their browser.

Note: For the SignUp, it's actually possible to continue email verification process in the different browser.

Describe the solution you'd like

Similar to confirmSignUp, where you can specify username and code, it would be great if you can specify username instead of relying on a browser state to make confirmSignIn work.

Describe alternatives you've considered

No other ideas currently

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthRelated to Auth components/categoryquestionGeneral question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions