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

Ban user functionality #101

Closed celestebyte closed 4 months ago

celestebyte commented 4 months ago

What kind of change does this PR introduce?

This PR adds the functionality to ban a user using the admin or stateless client.

What is the current behavior?

Add properties to set BanDuration and BannedUtil to verify the datetime of the ban applied to the user. The information was submitted in issue #100

What is the new behavior?

Added a way to ban a user using property BanDuration and retrieving the information of banned user in property BannedUtil.

Defined unit testing passing image

Added new test to show the functionality of banning a user and lifting the ban. image

Additional context

Also I updated the projects from Net7 (deprecated) to .Net8 (LTS).

If any other change is required let me know and I can work it 😊

acupofjose commented 4 months ago

Looks great to me - thanks @celestebyte!