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.
updateUser() method, the user needs to be signed in first.User, merges it into the current session, and emits .userUpdated.handleRedirect(_:).userMetadata as you wrote them. It does not convert them to snake_case.try await supabase.auth.updateUser(
UpdateUser(email: "new@email.com"),
redirectTo: URL(string: "my-app-scheme://callback")!
)
try await supabase.auth.updateUser(
UpdateUser(phone: "123456789")
)
try await supabase.auth.updateUser(UpdateUser(password: "newPassw0rd?"))
try await supabase.auth.updateUser(
UpdateUser(
userMetadata: [
"hello": .string("world")
]
)
)
try await supabase.auth.updateUser(
UpdateUser(
password: "new password",
nonce: "123456"
)
)