I am new to this so can anyone please help me out a bit.
I am trying to connect to zerodha through kiteconnect but while doing so, after receiving the request_token when I try to $kite->generateSession("$request_token", "$apisecret");, I get the message "Authentication failed: Token is invalid or has expired." I don't understand, how can the token get expired in seconds after been received. Am I doing something wrong or need to do something else?
Sorry It was a mis-type on my part in this forum but I am actually using $api_secret not $access_token. I even tried a request from localhost but I still get the same error on my redirect url
$url = "https://kite.trade/connect/login?api_key=$apikey&v=3";
You can also refer to this thread.
xxxsettings.php?status=success&request_token=CeZkh4cb3Bb4oLMIt3Om8rdIDf3Acj0u
But its the second phase where I use kiteconnect to get the access token through
$user = $kite->generateSession("$request_token", "$api_secret");
I am getting the error
Authentication failed: Token is invalid or has expired.
Thanks
You can know more here.