How using localStorage without a adapter?


#1

I like know, how use window.localStorage without installing an adapter or addon. I need transition a token and email user for another route and I don’t like uso url params. I like put this data in localStorage and retrieve in the other route.


#2

You could use a service for data you need to use between routes and to use localStorage it’s as simple as localStorage.setItem('key', JSON.stringify(value)) and JSON.parse(localStorage.getItem('key'))