Fix token generation debug route.