--- id: auth-api-getuser title: 'getUser()' slug: auth-api-getuser custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml --- import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' Gets the current user details. This method is called by the GoTrueClient `update` where the jwt is set to this.currentSession.access_token and therefore, acts like getting the currently authenticated user ```js const { user, error } = await supabase.auth.api.getUser('ACCESS_TOKEN_JWT') ``` ## Parameters
string