supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
478 stars 120 forks source link

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

Closed huksley closed 10 months ago

huksley commented 1 year ago

Bug report

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

https://github.com/supabase/auth-ui/assets/1594349/733579f8-6e3a-4626-b17a-9da38b6a8116

System information

Additional context

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

Cayllen commented 1 year ago

Same issue

cokeposada commented 11 months ago

Same issue :(