def verify_token(self, token):
        try:
            status, _, _ = self.resource.get_json('_session', {
                'Accept': 'application/json',
                'Cookie': 'AuthSession=' + token,
            })
        except http.Unauthorized:
            return False
        return status == 200
Verify user token
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Server.verify_token