// Replace 'your_api_key' and 'your_api_secret' with your actual Zerodha API key and API secret const yourApiKey = '--------------------------------'; const yourApiSecret = '---------------------------------';
// Step 1: Endpoint to initiate the login process app.get('/login', (req, res) => { const { api_key, redirect_url } = req.query;
app.listen(port, () => { console.log(`Server is running on http://localhost:${port}`); });
___________________________________________________________________________________________________________________________________________________________________________ and error is ___________________________________________________________________________________________________________________________________________________________________________ Server is running on http://localhost:3000 request_token qRf9lePkIBKqUrEhmRlzR0RWZe7WhoX5 checksum f9490b31fab967ce86b251dffafcf1f86e75c9a5eb6e1428727746729c68bc92 Error obtaining access token. Status Code: 400 Response: { status: 'error', message: '`api_key` should be minimum 6 characters in length.', data: null, error_type: 'InputException' } ___________________________________________________________________________________________________________________________________________________________________________