code: def revoke_token(token_id, user):
      
      try:
          token = TokenBlacklist.query.filter_by(id=token_id, user_identity=user).one()
          token.revoked = True
          db.session.commit()
      except NoResultFound:
          raise TokenNotFound("Could not find the token {}".format(token_id))
docs: Revokes the given token. Raises a TokenNotFound error if the token does
      not exist in the database