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

auth admin create user doesn't persist ban duration #1798

Open
castortech opened this issue Sep 30, 2024 · 0 comments
Open

auth admin create user doesn't persist ban duration #1798

castortech opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@castortech
Copy link

Bug report

  • [ x] I confirm this is a bug with Supabase, not with my own application.
  • [x ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When creating a user via:

const { data, error } = await supabaseAdmin.auth.admin.createUser({
		email: email,
		password: password,
		email_confirm: true,
		ban_duration: banDuration 
	})

and setting a banDuration, the returned object has the correct value for banned_until but the value is not persisted in the auth.users table, which remains null.

To Reproduce

Simply try it.

Expected behavior

The banned_until field is populated with the correct timestamp.

@castortech castortech added the bug Something isn't working label Sep 30, 2024
@saltcod saltcod transferred this issue from supabase/supabase Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant