Use browser localStorage
You would like to store and retrieve data client side in the browser’s localStorage (opens in a new tab).
localStorage API inside a TypeScript Client function:
localStorage.setItem("foo", "bar") localStorage.getItem("foo") // => "bar"
localStorageAPI only works client side, and therefore does not work in TypeScript Server functions.