The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
getUser documention updated
Ollie Halliday7fbc6a958f22
diff --git a/apps/reference/_supabase_js/generated/auth-getuser.mdx b/apps/reference/_supabase_js/generated/auth-getuser.mdxindex eecf7850f6f..ff0cae221b9 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 user = supabase.auth.getUser()+const { data, error } = await supabase.auth.getUser();```## Parameters@@ -50,11 +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 user = supabase.auth.getUser()+const { data: { user } } = await supabase.auth.getUser();```### Get the logged in user with a custom access token jwt.```js-const user = supabase.auth.getUser(jwt)+const { data: { user } } = await supabase.auth.getUser(jwt);```