You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a function to allow for a fallback (possibly with localStorage):
cookies.fallback=function(obj,opts){if(typeofobj!=='string'){console.log("Storing the data with the fallback method");}else{console.log("Retrieving the data with the fallback method");}storage(obj,opts);}
cookies({token: "a string over 10kb in size that doesn't fit in the cookies"});
It cannot default to it (as in, we cannot create and auto-integrate localStorage into cookies for example) since when setting cookies it should set the cookie or fail.
The text was updated successfully, but these errors were encountered:
Add a function to allow for a fallback (possibly with localStorage):
It cannot default to it (as in, we cannot create and auto-integrate localStorage into cookies for example) since when setting cookies it should set the cookie or fail.
The text was updated successfully, but these errors were encountered: