rwieruch / favesound-redux

🎶 A SoundCloud Client in React + Redux running in production. Live Demo and Source Code to explore React + Redux as a beginner.
http://www.robinwieruch.de/the-soundcloud-client-in-react-redux/
1.59k stars 249 forks source link

Add beforeunload hook at the top level component to remove auth token… #46

Closed chriszhangusc closed 7 years ago

chriszhangusc commented 7 years ago

This is for issue #44, I added a beforeunload hook to remove auth tokens when closing the tab/app. The auth token won't be around when the user closes the app and open another one.

rwieruch commented 7 years ago

Straight forward implementation. Great! 🎉