code: def generate_confirmation_token(user):
      
      data = [str(user.id), hash_data(user.email)]
      return _security.confirm_serializer.dumps(data)
docs: Generates a unique confirmation token for the specified user.
  
      :param user: The user to work with