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

Unable to Resend Confirmation Email to Unverified Users due to Lack of Email Access #22825

Closed
SergejSi opened this issue Apr 17, 2024 · 3 comments
Labels
auth All thing Supabase Auth related documentation Improvements or additions to documentation

Comments

@SergejSi
Copy link

Link
https://supabase.com/docs/reference/javascript/auth-resend?queryGroups=example&example=resend-email-signup-confirmation

Describe the problem

Problem: The current documentation does not clearly address how site operators can resend confirmation emails to users who have not verified their email addresses post-registration. This situation commonly results in a user lockout where the user cannot log in without verifying their email, and the site operator does not have access to the user's email to resend the confirmation link if it was not saved externally at signup.

Why is it confusing?

The documentation lacks a clear explanation or workaround for resending emails to users who can’t log in because their accounts remain unverified.
There is no mention of how to handle or access user emails for resending confirmation emails without manual database queries or external email storage solutions.
Describe the improvement

Needed Improvement:

Update Documentation: Include a section that explains how to handle unverified users who haven't confirmed their emails. Specifically, provide guidance on how administrators can resend confirmation emails or allow users to trigger a resend of the confirmation email themselves.
Code Example Addition:

const { data, error } = await supabase.auth.resend({
  type: 'signup',
  email: 'user@example.com',  // Dynamically use the user's email
  options: {
    emailRedirectTo: 'https://example.com/welcome'
  }
});

User Experience Issue:
Without the ability to resend verification emails easily, users who miss their initial verification email are likely to abandon the registration process due to inability to log in. This can significantly impact user retention and satisfaction.

@SergejSi SergejSi added the documentation Improvements or additions to documentation label Apr 17, 2024
@encima
Copy link
Contributor

encima commented Apr 17, 2024

Thanks for opening!

The code you provided does resend the signup confirmation and is designed to be triggered by the user on the client side where they would provide their email. Is that what you would like to see in the documentation or did I misunderstand?

@encima encima added the auth All thing Supabase Auth related label Apr 17, 2024
@SergejSi
Copy link
Author

Okay, I will handle it this way. I really miss the ability for users to log in with an unconfirmed email and then be able to confirm it. Additionally, if they do not receive the confirmation link, they should be able to click on a button to have the confirmation link resent.

But for now, I will proceed with the input email form field. Thanks for your response.

@encima
Copy link
Contributor

encima commented Apr 18, 2024

There is the option of using the new Anonymous Auth for similar behaviour.
Alternatively, you can remove the need for email confirmation and implement the logic on your side to create the behaviour you describe.

@encima encima closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth All thing Supabase Auth related documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants