Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Except you do. https://developer.mozilla.org/en-US/docs/Web/API/Window/unlo...

What happens if you lose power? You're logged out because it didn't save the token back. Verified this by pausing JS execution and killing Firefox. (the local storage key is "token")



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: