@staticmethod
def is_token_authenticated(handler):
    """Is the request token-authenticated?"""
    if getattr(handler, '_cached_hub_user', None) is None:
        handler.get_current_user()
    return getattr(handler, '_token_authenticated', False)
