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

GoTrueAdminApi.generateLink() missing parameter for newEmail #893

Closed
dsyrstad opened this issue Apr 18, 2024 · 0 comments · Fixed by #904
Closed

GoTrueAdminApi.generateLink() missing parameter for newEmail #893

dsyrstad opened this issue Apr 18, 2024 · 0 comments · Fixed by #904
Labels
auth This issue or pull request is related to authentication bug Something isn't working

Comments

@dsyrstad
Copy link
Contributor

Describe the bug
The GoTrueAdminApi.generateLink() method is missing the parameter for newEmail when you are trying to generate a link for an email change. For example:

  final linkResponse = await supabaseServiceClient.auth.admin.generateLink(
    type: GenerateLinkType.emailChangeNew,
    email: oldEmailAddress,
    newEmail: newEmailAddress, // MISSING
  );

The JS API has it: https://supabase.github.io/supabase-js/v2/modules/index.html#GenerateEmailChangeLinkParams

To Reproduce
See the code snippet above.

Expected behavior
I'm able to generate an email change link.

Screenshots
N/A

Version
Linux:

│   ├── supabase...
├── storage_client 2.0.0
├── supabase 2.0.2
│   ├── functions_client 2.0.0
│   ├── gotrue 2.1.0
│   ├── postgrest 2.0.1
│   ├── realtime_client 2.0.0
│   ├── storage_client...

I know I'm a bit behind, but it isn't in the latest gotrue 2.6.0 either.

Additional context
N/A

@dsyrstad dsyrstad added the bug Something isn't working label Apr 18, 2024
@dshukertjr dshukertjr added the auth This issue or pull request is related to authentication label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth This issue or pull request is related to authentication bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants