'Is the request token-authenticated?'

@staticmethod
def is_token_authenticated(handler):

    if (getattr(handler, '_cached_hub_user', None) is None):
        handler.get_current_user()
    return getattr(handler, '_token_authenticated', False)
