supabase-community / gotrue-csharp

C# implementation of Supabase's GoTrue
https://supabase-community.github.io/gotrue-csharp/api/Supabase.Gotrue.Client.html
MIT License
39 stars 27 forks source link

Feat InviteUserByEmail #7

Closed phxtho closed 3 years ago

phxtho commented 3 years ago

What kind of change does this PR introduce?

Adds the invite user by email functionality to the client

What is the current behavior?

Although implemented in the api the method isn't exposed on the client and you can't pass in a service_role token/secret

What is the new behavior?

Exposed the invite user by email method on the client, allowing a user to specify a jwt from the client.

Additional context

The random string method in the test suite used to generate emails was causing tests to fail as they were generating uppercase email and GoTrue is returning them as lowercase

acupofjose commented 3 years ago

@phxtho this is an awesome PR, thank you so much for the work! I'll bundle it into the next release