def generate_confirmation_token(self, expiration=604800):

        s = Serializer(current_app.config['SECRET_KEY'], expiration)
        return s.dumps({'confirm': self.id})
Generate a confirmation token to email a new user.
dataset/ETHPy150Open hack4impact/flask-base/app/models/user.py/User.generate_confirmation_token