Category "local-storage"

window.onstorage event doesn't seem to trigger

I'm working on a workaround with a synch'ing parent window, child window and grandchild window. I want to refresh the parent from the grandchild in case the chi

Where is the user data stored after decoding it from the token?

Where is the user data stored after decoding it from the token? I'm using react , and the Jwt token is stored in local-storage .

Set bootstrap switch component to 'checked' if mode is Dark

I have a theme for my web App in my localStorage and I want to add the checked value to the Switch component if the mode is set to 'dark',or unchecked, if the m

I'm having trouble removing an item from localStorage for my tasklist app which i'm building using vanilla javascript

Here's a function i'm having trouble with the foreach loop traverses just fine but i'm having trouble removing item from localStorage. function removeFromLocalS

chrome: why does localStorage also contains sessionStorage data?

I am using AWS Cognito for my web app and testing with Chrome browser. I started with the default AWS Cognito / Amplify configurations, such that the tokens are

How to replace a value in localstorage using javascript?

If the value is exist in localstorage I want to replace it. When I try to do that existing value is still inserting. addEntry = (e,id) => { e.preventD

Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable when accessing available var

I'm writing a client that communicates with a websocket server. Currently, the socket server sends a generated "token" to the client, which then sets it in stor

React.js: How to get and show current user when logged in?

In my React app I am working in user login. My goal is to show current user's username when the user is logged in. I'm fetching the user data in redux actions a

React.js: How to get and show current user when logged in?

In my React app I am working in user login. My goal is to show current user's username when the user is logged in. I'm fetching the user data in redux actions a

Why React state in localStorage is being deleted

I'm having problems to persist the state in the local storage. It's a simple todo app. After adding one todo and refreshing it, all todos are being deleted. Cou

How to remove an item from Local Storage when clicking on it? [duplicate]

I want to delete an item stored in Local Storage when it is clicked. But I don't know how to do that. Please help me to solve this problem. Th

How to fix 'The previous state received by the reducer...'?

I load/update data in localStorage: import thunk from "redux-thunk"; import {applyMiddleware, createStore} from "redux"; import {composeWithDevTools} from "redu

How to use an absolute path for a local video on the device when using react-native-video?

I'm developing an App that should automatically play a video stored on a specific path of the device (currently, i'm trying to access the DCIM folder) without

How worried should I be about opening up a JWT to an XSS vulnerability?

I am building a node.js web application with react for the the GUI and graphQL served with Apollo for the back-end connecting to a RDS (MySQL) instance on AWS.

how to change folder location to save file - DJANGO FileSystemStorage

so i want when i upload a file, the file will go to media/mp3 not media/txt. how to change save file location? views.py: def homepage(request): if request.m

how to make custom form without database - DJANGO

So i want to upload file but only sent to locals storage NOT DATABASE too. But i don't know how to make custom forms. suddenly, here's my models.py : from djang

Removing nickname from localStorage string

I'm trying to check localStorage for a nickname and if it includes the nickname remove it from the localStorage. window.removeNickname = (n) => { const n

Why is localStorage getting cleared whenever I refresh the page?

Like the title says, the localStorage I set registers the changes made to the todoList array and JSON.stringifys it; however, whenever I refresh the page the ar

Cypress: I want run tests in 100 spec files by login one time and persist login for every file. Is it possible?

I have almost 100 specs files including multiple tests. I want run all these specs files by login one time. I dont want my cypress should login process every ti

Can chrome.storage save "advanced" objects like Date or Map?

I made a chrome extension that manages internet history, browser cookies, etc. I'm trying to make a notification if you don't run it for a week, so I used chrom