Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ban user functionality missing #100

Closed
celestebyte opened this issue Jul 13, 2024 · 1 comment
Closed

Ban user functionality missing #100

celestebyte opened this issue Jul 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@celestebyte
Copy link
Contributor

Feature request

The way of ban a user and retrieve the ban_duration is missing from the client.

Is your feature request related to a problem? Please describe.

There is no way to ban a user using the client.

Describe the solution you'd like

Add the properties in the classes to support banning users and retrieve the information until when a user is banned.

Describe alternatives you've considered

I can extend the class AdminUserAttributes and add the property but feels external to the client.

Additional context

Other clients like JS have this functionality already: https://github.com/supabase/auth-js/blob/master/src/lib/types.ts#L431 or in Python: https://github.com/supabase-community/auth-py/blob/main/supabase_auth/types.py#L229

If any information is missing I am happy to add it,

Also, when is approved to add this functionality in the client I can submit a PR with the changes 😊

@celestebyte celestebyte added the enhancement New feature or request label Jul 13, 2024
@acupofjose
Copy link
Collaborator

Thanks for the request! Yes that is functionality we need - please feel free to open a PR if you’d like to work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants