When users come to my website, I would like to know whether hello.js is working (auto-login), so I can show a loading spinner. Also it would help a lot on pages that require auth, to know whether hello.js is working on auth.
I know I can poke around localStorage myself to see if there is anything saved, but is there an official way - maybe a promise or special event I can listen for?
When users come to my website, I would like to know whether hello.js is working (auto-login), so I can show a loading spinner. Also it would help a lot on pages that require auth, to know whether hello.js is working on auth.
I know I can poke around localStorage myself to see if there is anything saved, but is there an official way - maybe a promise or special event I can listen for?