def METHOD_NAME(cls, resp):
    """generate JWT token and write it to response"""
    value = cls.serializer.dumps(cls.token).decode()
    resp.set_cookie(cls.cookie_name, value, path='/', secure=False)