- My goal: use localStorage API to a credential for my internal API that can be re-used when the page reloads.
- Issue: My app was working previously. Today I see: “localStorage.getValue is not a function”. I do not see the function mentioned in the localStorage docs online, so I am wondering if it was removed, whether on purpose or on accident? The localStorage object | Retool Docs
- Steps I've taken to troubleshoot: checking docs, searching for other issues like mine, searching for API updates.
- Additional info: Cloud
Thanks for reaching out, @Jacob_Muchow - and welcome to the community!
This definitely should work, so I'm not sure why you're getting an error. Is this something you're seeing consistently or just intermittently? Can you check your client version?
I changed to localStorage.values.adminBearerToken instead which I see is an alternative syntax and this works for me now.
It’s curious getValue() was working when I built the app on Thursday, then today it was not working.
Version is 3.291.0, same as the screenshot you sent.
It's very curious! I'm glad you have an alternative, but getValue still works for me. ![]()
Can you confirm that this is still an issue for you, @Jacob_Muchow? I'd be interested in taking a look during Office Hours, if you're able to join. ![]()

