refreshToken
Attempts to refresh the access token for this user by making an API call to the "/token" endpoint. If the call succeeds, the new token is persisted. If the call fails and the refresh token is no longer valid, the user is logged out. This should NOT be called from the main thread because it makes a network request.
Parameters
userAccount
User account whose token should be refreshed. Use 'null' for current user.