def METHOD_NAME(self, resp):
    if "access_token" in resp or "id_token" in resp:
        tok = self._token_class(resp)
        if tok not in self.tokens:
            for otok in self.tokens:
                otok.replaced = True
            self.tokens.append(tok)
    if "code" in resp:
        self.add_code(resp)