DEV Community

Discussion on: Use Local Storage Smartly 😎

Collapse
 
moopet profile image
Ben Sinclair

Ok, I'm new to a lot of this. If this is using LocalStorage, which as you say is on the browser's window object, how is node involved? Is this using a framework which replicates the browser's storage server-side? I know it's not directly available to node, and there are things like node-localstorage which emulate its behaviour. What am I missing?

Collapse
 
codecraftjs profile image
Code Craft-Fun with Javascript

We can extract the hashed secret key from the API service.
We can generate a pattern logic on some business data which we can get from an authenticated API's only and from which the secret key can be generated dynamically.
There can be many more techniques that we cam evolve by makeing sure that the secret key should be secret.