supabase / auth-js

An isomorphic Javascript library for Supabase Auth.
MIT License
319 stars 152 forks source link

feat: warn use of `getSession()` when `isServer` on storage #846

Closed hf closed 4 months ago

hf commented 5 months ago

Warn about using getSession() when the storage has isSever to true without previously having called getUser().

Warn each time the user is accessed as returned by getSession().

Relates to: