Default storage strategy that delegates to localStorage.
localStorage
All operations are wrapped in try/catch so they degrade gracefully in environments where localStorage is unavailable (SSR, private browsing quota exceeded, etc.).
Retrieve a value by key. Returns null when the key does not exist.
null
Remove the value for the given key.
Store a value under the given key.
Default storage strategy that delegates to
localStorage.All operations are wrapped in try/catch so they degrade gracefully in environments where localStorage is unavailable (SSR, private browsing quota exceeded, etc.).