Fix for token refresh failing, improving ability to call identity.