code: def update_token(self, token, secret):
          
          if self.access_token != token or self.secret != secret:
              with db.session.begin_nested():
                  self.access_token = token
                  self.secret = secret
                  db.session.add(self)
docs: Update token with new values.
  
          :param token: The token value.
          :param secret: The secret key.