@staticmethod
def _validate_token_fields(token):
    """
            Validates a token
        """
    valid_keys = ['kind', 'localId', 'email', 'displayName', 'idToken',
        'registered', 'refreshToken', 'expiresIn', 'userId']
    for k in valid_keys:
        if k not in token:
            return False
    return True
