Swift: Update a user

Examples

Update the email for an authenticated user

try await supabase.auth.update(user: UserAttributes(email: "new@email.com"))

Update the password for an authenticated user

try await supabase.auth.update(user: UserAttributes(password: "newPassw0rd?"))

Update the user's metadata

try await supabase.auth.update(
  user: UserAttributes(
    data: [
      "hello": .string("world")
    ]
  )
)