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

Resending signup confirmation email doesn't support pkce #1872

Open
2 tasks done
Vinzent03 opened this issue Dec 12, 2024 · 0 comments
Open
2 tasks done

Resending signup confirmation email doesn't support pkce #1872

Vinzent03 opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Vinzent03
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 having email confirmation turned on for email+password signup and trying to resend the email, the resent email doesn't contain a hash token that works with pkce.

To Reproduce

In Dart:

await supabase.auth.signUp(email: "myemail", password: 'Aa123456-!',

Link in that email: https://myref.supabase.co/auth/v1/verify?token=pkce_1027fded09f1d5f05f39de2196cb815700b0bed72685a28983be1fd7&type=signup

and then

await supabase.auth.resend(type: OtpType.signup, email: "myemail");

Link in that email: https://myref.supabase.co/auth/v1/verify?token=0314f758286a584407d6b76d671e4762346b4786ad29a108a9d04da5&type=signup

Expected behavior

The user is able to confirm their email with the resent email when using pkce flow.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • Version of supabase_flutter: 2.8.0

Additional context

This was already discussed here: https://github.com/orgs/supabase/discussions/18442

A user reported that here: supabase/supabase-flutter#1084

@Vinzent03 Vinzent03 added the bug Something isn't working label Dec 12, 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