supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
661 stars 154 forks source link

`GoTrueAdminApi.generateLink()` missing parameter for `newEmail` #893

Closed dsyrstad closed 2 months ago

dsyrstad commented 2 months ago

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