Skip to content

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

docs: Fix user auth code snipptes.

Thorsten Schaeff494938c3f64c
diff --git a/web/docs/library/examples/users.js b/web/docs/library/examples/users.js
index 167031f135c..6a969397077 100644
--- a/web/docs/library/examples/users.js
+++ b/web/docs/library/examples/users.js
@@ -1,29 +1,25 @@
export const signup = `
-let { body: user } = await supabase
- .auth
- .signup(
- 'fOdaPdyTpkpxJgDVIORt'
- )
+const {
+ body: { user },
+} = await supabase.auth.signup(
+ 'fOdaPdyTpkpxJgDVIORt'
+)
`.trim()
export const login = `
-let { body: user } = await supabase
- .auth
- .login(
- 'fOdaPdyTpkpxJgDVIORt'
- )
+const {
+ body: { user },
+} = await supabase.auth.login(
+ 'fOdaPdyTpkpxJgDVIORt'
+)
`.trim()
export const userData = `
-let { body: user } = await supabase
- .auth
- .user()
+const user = await supabase.auth.user()
`.trim()
export const logout = `
-let { body: loggedOut } = await supabase
- .auth
- .logout()
+await supabase.auth.logout()
`.trim()