Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: fix updateUser method call in auth-anonymous guide (#39811)

Guilherme Souza3b8b20b038fd
diff --git a/apps/docs/content/guides/auth/auth-anonymous.mdx b/apps/docs/content/guides/auth/auth-anonymous.mdx
index 5a32482cefe..8125fb121b5 100644
--- a/apps/docs/content/guides/auth/auth-anonymous.mdx
+++ b/apps/docs/content/guides/auth/auth-anonymous.mdx
@@ -160,10 +160,10 @@ await supabase.auth.updateUser(UserAttributes(email: '[email protected]'))
<$Show if="sdk:swift">
<TabPanel id="swift" label="Swift">
-You can use the [`updateUser()`](/docs/reference/swift/auth-updateuser) method to link an email or phone identity to the anonymous user.
+You can use the [`update(user:)`](/docs/reference/swift/auth-updateuser) method to link an email or phone identity to the anonymous user.
```swift
-try await supabase.auth.updateUser(
+try await supabase.auth.update(
user: UserAttributes(email: "[email protected]")
)
```