def METHOD_NAME(self, client_id, scope, data):
    """Save device credentials
    :param str client_id: client id
    :param str scope: request scopes
    :param dict data: device credentials
    """
    data.update(
        dict(
            uri="{api}?{query}&response_type=device&client_id={client_id}&scope={scope}".format(
                api=data["verification_uri"],
                query=self.req.query,
                client_id=client_id,
                scope=scope,
            ),
            id=data["device_code"],
            client_id=client_id,
            scope=scope,
        )
    )
    result = self.server.db.addSession(data)
    if not result["OK"]:
        raise OAuth2Error("Cannot save device credentials", result["Message"])