Skip to content

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

getUser examples changed

Ollie Halliday168206aef21f
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.yml
index e6208bcb81a..5ba0c18210a 100644
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@ -188,13 +188,13 @@ pages:
isSpotlight: true
js: |
```js
- const user = supabase.auth.getUser()
+ const { data: { user } } = await supabase.auth.getUser()
```
- name: Get the logged in user with a custom access token jwt.
isSpotlight: true
js: |
```js
- const user = supabase.auth.getUser(jwt)
+ const { data: { user } } = await supabase.auth.getUser(jwt)
```
auth.updateUser():
title: 'updateUser()'