Skip to content

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

revert changes

Ollie Halliday974dcea81198
diff --git a/apps/reference/_supabase_js/generated/auth-getuser.mdx b/apps/reference/_supabase_js/generated/auth-getuser.mdx
index 2dcad472172..eecf7850f6f 100644
--- a/apps/reference/_supabase_js/generated/auth-getuser.mdx
+++ b/apps/reference/_supabase_js/generated/auth-getuser.mdx
@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem'
Gets the current user details if there is an existing session.
```js
-const { data, error } = await supabase.auth.getUser()
+const user = supabase.auth.getUser()
```
## Parameters
@@ -50,15 +50,11 @@ Takes in an optional access token jwt. If no jwt is provided, getUser() will att
### Get the logged in user with the current existing session
```js
-const {
- data: { user },
-} = await supabase.auth.getUser()
+const user = supabase.auth.getUser()
```
### Get the logged in user with a custom access token jwt.
```js
-const {
- data: { user },
-} = await supabase.auth.getUser(jwt)
+const user = supabase.auth.getUser(jwt)
```