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