Fix failing login when existing token cache expires
Merge pull request #1409 from ljhljh235/tokencachecleanup

Fix failing login when existing token cache expires