@classmethod
  def CreateUnsubscribeCookie(cls, user_id, email_type):
    unsubscribe_dict = {'user_id': user_id, 'email_type': email_type}
    return web.create_signed_value(secrets.GetSecret('invite_signing'), 'unsubscribe', json.dumps(unsubscribe_dict))
Create a user unsubscribe cookie that is passed as an argument to the unsubscribe handler,
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/user.py/User.CreateUnsubscribeCookie