Fix failing login when existing token cache expires