Hi Team, I have gone through the faq, but did not find the solution, I have not got the session token even once. kindly help TIA.
error object i am getting is below { status: 'error', message: 'Token is invalid or has expired.', data: null, error_type: 'TokenException' }
please find below the code, I am using
var KiteConnect = require("kiteconnect").KiteConnect; var FormData = require('form-data'); const axios = require("axios");
var url = require("url"); var kc = new KiteConnect({ api_key: "XXXXXXXXX", }); var URL_generate_request_token = "https://kite.zerodha.com/connect/login";
var api_secret = "XXXXXXXX"; var api_key = "XXXXXXXXXX" ; const headers = { "X-Kite-Version": 3, "Content-Type": "application/x-www-form-urlencoded" }