I'd expect even a junior to at a minimum test and view the response payload, see the token and think "bad idea".
Hacker News seems to assume juniors are useless, from the comments I've seen to date - but they should be able to _think_ and solve problems, even if they're less experienced at interacting with stakeholders, designing system architecture etc.