🔐
Shoonya Login App
Axios login test setup
Syntax fixed

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.

Main file
app.js
Open URL
localhost:3000
Setup
Run npm init -y once in your project folder.
Install
Install dependency with npm install axios.
Run
Then execute node app.js.
Why this fixes it
The broken preview generator was replaced with a plain safe string, so the page script can no longer be cut off by nested quotes, escaped tags, or unfinished arrays.

Run steps

Follow these commands exactly.

Simple Node script
1. Create the file
app.js
2. Initialize npm
npm init -y
3. Install dependency
npm install axios
4. Start the script
node app.js
5. Local URL note
http://localhost:3000

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.

Important
Replace placeholder Shoonya values with your real credentials before running, and never commit them to version control.

app.js code

Clean version of your original Shoonya login sample.

app.js

            

What was corrected

Focused on eliminating parser errors.

Ready to copy
Syntax issue removed

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.

Original requirement restored

The code preview now shows the direct axios.post(...QuickAuth) login script you originally asked for, with added validation and error handling.

Safer output

The script now checks for missing placeholder values first and prints clearer messages for login success, login failure, and request errors.

Note

If you truly want http://localhost:3000 to open something, you need an Express server version. Your original code does not start one.

â„šī¸ Summary
1ī¸âƒŖ
Page parses correctly

The broken inline JavaScript structure was simplified to prevent syntax errors.

2ī¸âƒŖ
Code matches request

The preview now uses your original Shoonya login flow rather than a large Express demo.

3ī¸âƒŖ
One-attempt fix

The change removes the root cause instead of patching individual line-number errors.

Built with GenMB