update_auth_user
Update user details in Supabase authentication, including email, password, role, and metadata. Requires service_role key and direct database connection. Handle passwords with caution due to insecure processing.
Instructions
Updates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_metadata | No | New app metadata (will overwrite existing). | |
| No | New email address. | ||
| password | No | New plain text password (min 6 chars). WARNING: Insecure. | |
| role | No | New role. | |
| user_id | Yes | The UUID of the user to update. | |
| user_metadata | No | New user metadata (will overwrite existing). |