def METHOD_NAME(self, redirect):
    csrfToken = Token().createToken(days=0.25)
    # The delimiter is arbitrary, but a dot doesn't need to be URL-encoded
    state = '%s.%s' % (csrfToken['_id'], redirect)
    return state