Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resend verification email to nonexistent user doesn't fail #1850

Open
2 tasks done
DreamwareDevelopment opened this issue Nov 28, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@DreamwareDevelopment
Copy link

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

When sending an email to a user that used to exist, but doesn't anymore, I got a false positive. I'd expect the following to fail when the user isn't valid / doesn't exist:

await supabase.auth.resend({ email, type: 'signup' })

To Reproduce

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

  1. await supabase.auth.resend({ email, type: 'signup' }) with a valid email for an invalid user
  2. No error

Expected behavior

An error should be thrown

System information

"@supabase/ssr": "^0.5.2"

Additional context

Really minor issue. I see in the docs:

This method will only resend an email or phone OTP to the user if there was an initial signup, email change or phone change request being made.

But still, an error would make sense here.

@DreamwareDevelopment DreamwareDevelopment added the bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant