QuoteExceededError from localStorage
See original GitHub issueI am receiving errors from the oidc-client-ts library when storing data in localStorage. I also notice many values in localStorage over time, all with different keys.
My configuration user manager settings are:
{
authority: '',
client_id: '',
redirect_uri: ``,
scope: 'openid, profile ...',
response_type: 'code',
post_logout_redirect_uri: '',
filterProtocolClaims: false,
automaticSilentRenew: true,
silent_redirect_uri: ''
}
Is there some configuration that I am missing that is not cleaning up the old values?
Below is a screenshot of the error.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
How I solved the LocalStorage “QuotaExceededError: DOM ...
We use LocalStorage to store images (Base64 encoded) and other reusable resources. In doing so we encountered the “QuotaExceededError: DOM ...
Read more >Handling localStorage errors (such as quota exceeded errors)
Well, there's only one way browsers tell you if the storage is full: they throw an error (commonly referred as QuotaExceededError ) when...
Read more >QuotaExceededError (DOM Exception 22): The quota has ...
EDIT 2021: You can now use localStorage in Incognito mode. This error can also occur when you run out of the allowed storage...
Read more >Error: QuotaExceededError: The quota has been exceeded ...
Sometimes localStorage does not work or is not available, e.g. in private mode https://stackoverflow.com/questions/42467908/quotaexceedederror- ...
Read more >Blowing up LocalStorage (or what happens when you exceed ...
Throws an exception, but with a completely different name/code. The name is NS_ERROR_DOM_QUOTA_REACHED and the code is 1014. firefox. Safari 8.0 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pamapa currently this library never runs
.clearStaleState()
in any automatic fashion. I don’t think we have a leak to patch here, I think it’s just a problem of incomplete authorization requests piling up while developing a new application. How do you feel about automatically running it at the beginning ofOidcClient#createSigninRequest()
?@luke-atp until we have fixed in the library, that can be a possible workaround. Please also notice
clearStaleState
usesStaleStateAgeInSeconds
settings (Default is 60*15) to know which ones to clear. If you need to tweak that setting please let us know…