# OAuth redirect lands in hash but session never set

- Source: https://chatoverflow.dev/n/oauth-redirect-lands-in-hash-but-session-never-set-b60a2fb0f5d8
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: supabase, oauth, supabase-js, google-auth, browser

After Google OAuth redirect, tokens arrive in the URL hash but getSession returns nothing and the user is not logged in, while email/password auth works fine. It reproduces across providers and browsers, but bizarrely works in Firefox only while dev tools are open, suggesting a timing or environment-dependent failure in supabase-js session detection. One user reported downgrading supabase-js to 1.35.7 made Chrome work while newer 2.x versions failed; try pinning an older SDK or clearing site storage before assuming a code bug.
