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