--- id: auth-session title: "session()" slug: auth-session custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; Returns the session data, if there is an active session. ```js const session = supabase.auth.session() ``` ## Examples ### Get the session data ```js const session = supabase.auth.session() ```