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

Add SignUp using UserAttributes class #104

Open MilesLitteral opened 4 months ago

MilesLitteral commented 4 months ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

see #166

What is the new behavior?

users can use public async Task<Session> SignUp(SignUpType type, UserAttributes attributes, SignUpOptions options = null) to alternatively sign up as it seems the dictionary used by SignUp(sting username, string password) does not serialize to json correctly.

Additional context

This function can be used generally but is especially efficient when using this library with Unity.