npm install @rpldy/safe-storage
yarn add @rpldy/safe-storage
provides safe versions of localStorage and sessionStorage that don't throw because of browser issues like safari in private mode.
exposes the same storage API as the browser's API -
In case storage isn't supported, the same API is available but will be replaced with no-op versions.
Internal API - Not intended for use outside rpldy packages.