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

Allow for scoped signout #97

Closed AndrewKahr closed 5 months ago

AndrewKahr commented 5 months ago

What kind of change does this PR introduce?

This PR adds the ability to change the sign-out scopes from the default global scope.

What is the current behavior?

Calling signout always signs out from the global scope. There is no way to change to a different scope.

What is the new behavior?

Calling signOut now has a parameter to allow signing out from a different scope. To preserve backward compatibility and ensure parity with the js version, the parameter defaults to the global scope so there is no difference functionally.

acupofjose commented 5 months ago

Looks great to me! Thanks @AndrewKahr