def get_token(self):
    if self.is_authenticated:
        return {'id': self.token, 'expires': self.token_expires, 'project_id': self.project_id}
    return None
def get_token(self):
    if self.is_authenticated:
        return {'id': self.token, 'expires': self.token_expires, 'project_id': self.project_id}
    return None