fix for error global name 'AccessTokenRefreshError' is not defined