ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
1 reply
davidmaxwaterman

localstorage exception

I'm working on a page in a browser that doesn't have localStorage. As such, I've attempted to disable it with the 'persistSession' option, but failed - it still seems to attempt to access
globalThis.localStorage
globalThis.localStorage
causing an exception. The only way I managed to make it work is by faking a localStorage API in an object which I assign to the `localStorage' option. I feel like this is not ideal and likely to lead to problems down the line.
Is there a way to stop it using localStorage, or is localStorage required?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using cookies vs localstorage
SupabaseSSupabase / help-and-questions
4y ago
Timeout Exception
SupabaseSSupabase / help-and-questions
5mo ago
Subscribe exception csharp
SupabaseSSupabase / help-and-questions
8mo ago
Failed to read the 'localStorage' property from 'Window': Storage is disabled
SupabaseSSupabase / help-and-questions
3y ago