favesound-redux icon indicating copy to clipboard operation
favesound-redux copied to clipboard

Implement auto-login feature

Open chriszhangusc opened this issue 6 years ago • 2 comments

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.

chriszhangusc avatar Dec 18 '17 03:12 chriszhangusc

Not sure if this is a good way to do it but if anyone has better idea please comment!

chriszhangusc avatar Dec 18 '17 03:12 chriszhangusc

LGTM without having tested it. But concise and nice implementation! 👍

rwieruch avatar Dec 18 '17 04:12 rwieruch