cloudcrate / BlazorStorage

A library for Blazor local and session storage support.
MIT License
113 stars 19 forks source link

Cookie storage fallback #6

Closed ghidello closed 5 years ago

ghidello commented 6 years ago

Hi, I just saw this issue https://github.com/IdentityModel/oidc-client-js/issues/631 where they are trying to have some sort of persistence when local and session storage are not available (e.g. chrome incognito mode). Do you think we should provide this kind of fallback?

LunicLynx commented 6 years ago

Interesting! Supporting storing data in cookies would be really nice. The fallback on the otherhand is probably best handled by the library consumer, hard to make assumptions about the consumers intent.

ghidello commented 6 years ago

Sorry if I didn't get back to you sooner. I agree that a library should not make assumptions on the consumer intent but I guess that I would like some way to opt-in a working solution for the fallback for those applications that must rely on some king of storage present. I'm actually working on a library which uses yours so I'll get back to you when I'll tackle the problem.

In the meantime thanks again: I'm loving my session storage so far!

LunicLynx commented 5 years ago

Closing as out of scope