favesound-redux
favesound-redux copied to clipboard
Implement auto-login feature
Check if the current token is valid every time user refreshes the page. If it is, fetch user information and log the user in. If it is not, log the user out and then open the login window.
Not sure if this is a good way to do it but if anyone has better idea please comment!
LGTM without having tested it. But concise and nice implementation! 👍