For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

C#: Update a user

Updates user data, if there is a signed-in user.

Examples

Update the email for an authenticated user

var attrs = new UserAttributes { Email = "new-email@example.com" };
var response = await supabase.Auth.Update(attrs);

Update the password for an authenticated user

var attrs = new UserAttributes { Password = "***********" };
var response = await supabase.Auth.Update(attrs);

Update the user's metadata

var attrs = new UserAttributes
{
  Data = new Dictionary<string, string> { {"example", "data" } }
};
var response = await supabase.Auth.Update(attrs);