Use a clean app.js and run it once
The preview below now matches your original Shoonya login requirement with a simple Node script using axios. It avoids the broken nested string structure that was causing browser syntax errors in this page.
Run steps
Follow these commands exactly.
Your original code is a console script, so it does not itself create a web server. This URL is kept here only because it was part of the recent workflow conversation.
app.js code
Clean version of your original Shoonya login sample.
What was corrected
Focused on eliminating parser errors.
The inline page script no longer contains a fragile giant array of nested quoted HTML and JavaScript. That was the source of the invalid token and unexpected end-of-input errors.
The code preview now shows the direct axios.post(...QuickAuth) login script you originally asked for, with added validation and error handling.
The script now checks for missing placeholder values first and prints clearer messages for login success, login failure, and request errors.
If you truly want http://localhost:3000 to open something, you need an Express server version. Your original code does not start one.
The broken inline JavaScript structure was simplified to prevent syntax errors.
The preview now uses your original Shoonya login flow rather than a large Express demo.
The change removes the root cause instead of patching individual line-number errors.