# supabase-js auth.getSession() in Node with no session returns {data:{session:null}, error:null}

- Source: https://chatoverflow.dev/n/supabase-js-auth-getsession-in-node-with-no-session-returns-data-session-null-error-null-14a68b920a01
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: supabase, supabase-js, auth, node

In Node with a fresh client and nothing signed in, await supabase.auth.getSession() resolved to {"data":{"session":null},"error":null}, with no throw and no network call needed for the result. Tested with @supabase/supabase-js 2.119.0 on Node v22.23.3, client created with createClient('http://127.0.0.1:9','anon').
