local-storage Questions
2
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 storage with:
localStorage.set...
Lancers asked 25/2, 2022 at 21:12
3
Solved
While testing the security of one of our product, a web application, using the REST API of Firebase we got surprised when we realised that refresh-tokens never expire in the V3 of the Firebase impl...
Cynde asked 19/5, 2017 at 13:4
11
I tried searching the web for a node module that can access the client's localStorage but wasn't able to find anything. Anyone know of one?
Frieder asked 27/4, 2012 at 21:27
3
Solved
I am trying to store my array with local storage, but I am not sure how to do it. Also, how would I make it so that with each update in the state, the local storage gets updated at the same time?
C...
Totem asked 12/3, 2022 at 16:47
6
Solved
I want to export a few items from my localStorage to save it externally but in a format so that I can import it again later.
My attempt was to write executable code that can be pasted later in a t...
Vadose asked 11/11, 2012 at 22:8
6
I'm making an authentication system and after backend redirects me to the frontend page I'm making API request for userData and I'm saving that data to localStorage. Then I'm trying to load Spinner...
Ursuline asked 12/4, 2020 at 21:13
6
Solved
Some websites show local storage being used (in Google Chrome: CTRL+I, resources tab, Local Storage).
For example, StackOverflow has a "login-prefs" key with my default sign-in provider(?). So fro...
Iq asked 4/4, 2013 at 3:0
6
Solved
In recent versions of Firefox (since 42 or 43 maybe?), I find some sites unusable due to NS_ERROR_STORAGE_CONSTRAINT errors. I currently have 43.0.4. For example, when I go to https://jsfiddle.net/...
Seidler asked 20/1, 2016 at 12:40
9
Solved
I am using next 13.1.0.
I have a ContextProvider that sets a light and dark theme
'use client';
import { Theme, ThemeContext } from '@store/theme';
import { ReactNode, useState, useEffect } from 'r...
Enamelware asked 12/1, 2023 at 9:21
3
Is it possible to store data locally in IndexedDB using Pinia ?
I tried using Pinia persisted state and it stores data locally in LocalStorage as default. I just want to try if it will work with In...
Narvaez asked 12/12, 2022 at 20:55
3
Solved
This error shows every time in chrome when i open the console.
Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting
the value of 'domains' exceeded the quota. at HTMLScriptEle...
Ekaterina asked 19/4, 2018 at 14:11
5
Solved
I am using next.js for frontend. I want to get user from localStorage, but as next.js is a server-side rendring, I can't get localStorage. What should I do so I can get localStorage?
import { creat...
Seraphim asked 21/4, 2023 at 7:16
5
Solved
Well, I'm starting with nuxt and I have following routes:
/home
/dashboard
/login
I want to protect the /dashboard, but only for users logged in with a token in localStorage.
The simplest way...
Sw asked 8/9, 2018 at 23:53
5
Solved
I would like to mock localStorage methods in jest for error simulation. I have localstorage getter and setter methods defined in utility.js. I would like to mock localStorage.setItem to throw an er...
Laguna asked 18/10, 2018 at 21:48
15
Solved
I'm currently building a single page application using ReactJS.
I read that one of the reasons for not using localStorage is because of XSS vulnerabilities.
Since React escapes all user input, woul...
Flatulent asked 23/5, 2017 at 11:28
8
Solved
It seems like it should be possible to view the localStorage/chrome.storage of Chrome Extensions installed on my browser. I've played around with the Developer Tools a bit, but haven't found a way ...
Carty asked 12/8, 2012 at 14:32
3
Solved
I am trying to keep some data in sessionStorage, but if I refresh the page or leave from a link then come back, the sessionStorage no longer exists.
I am new to sessionStorage, so sorry if this is...
Burro asked 4/3, 2015 at 17:48
4
When I run window.localStorage on https://stackoverflow.com it returns the localStorage but when I use the same command on Discord page it returns undefined every time.
Is there something that Dis...
Historicism asked 26/9, 2018 at 3:18
3
I am experiencing a problem, which is not very frequent but still occurs on a regular basis, in a web application that makes use of local storage.
The problem is only occurring in iOS/macOS devices...
Goss asked 9/3, 2021 at 20:8
5
Solved
I would like to keep my isAuthenticated state in local storage, so after refreshing the page, the user will be logged in. I tried straightforward, to set it ti true/false in localStorage and to set...
Calmas asked 17/7, 2021 at 13:41
1
I am migrating a cordova app to react native and need to access the localstorage to persist login when we update the app.
How do i access the window.localStorage from my old app in my updated vers...
Hepatica asked 12/9, 2019 at 10:41
5
I'm currently working on my first member area with next.js. For now I want to store some data in localStorage (token, expiresAr, userInfo) - btw, later this is going to be stored in http-only cooki...
Bakemeier asked 28/12, 2020 at 15:3
3
Solved
In my Zustand store I try loading initial state from data persisted in Local storage (I did not opt for middle-ware as there were some kinks with Next that I didn't want to deal with):
const getIni...
Ballata asked 27/8, 2023 at 8:3
6
Solved
Basically, we have this in our index.js file to set-up the ApolloProvider authorization to make queries / mutations.
import React from 'react';
import ReactDOM from 'react-dom';
import App from '...
Gawk asked 21/5, 2019 at 7:3
3
There are already a few questions related to using the local storage with iframes to be able to share data across different domains. However, none of them addresses the issue when the "Block t...
Clausen asked 22/5, 2021 at 0:44
1 Next >
© 2022 - 2025 — McMap. All rights reserved.