Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Using builtin Auth form and magic link without filling in email results in invalid error message #179

@huksley

Description

@huksley

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

It writes "unsupported_otp_type" when I click "Send magic link" without filling an e-mail.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone https://github.com/huksley/supabase-auth-nextjs
  2. Put into .env.local your Supabase project NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY
  3. npm run dev
  4. Open http://localhost:3000
  5. Auth form appears
  6. Select Send a magic link email
  7. Press button Send Magic Link
  8. Error appears

Expected behavior

Button either disabled or a valid error message, such as "Please fill in your e-mail" are displayed.

Screenshots

88.mp4

System information

  • OS: MacOS 13.3.1
  • Browser: Chrome 113
  • Version of Node.js: v16.20.0
  • Relevant modules versions:
    "@supabase/auth-helpers-nextjs": "^0.6.1",
    "@supabase/auth-helpers-react": "^0.3.1",
    "@supabase/auth-ui-react": "^0.4.2",
    "@supabase/auth-ui-shared": "^0.1.6",
    "next": "^12.2.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"

Additional context

Maybe relevant: https://github.com/orgs/supabase/discussions/6238

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions