zerodha/phpkiteconnect

Issue in authentication

Opened this issue · 1 comments

When i am trying to login using kite app, after login it redirects me to following url

https://*./redirect.php?user_id=ZW4354&request_token=LQQAs0kRdOd31nNtRtycjGXBxVWdSgs5&action=login&status=success

And when i call generateSession it gives me following error.

Authentication failed: Token is invalid or has expired.
Fatal error: Uncaught TokenException (403) 'Token is invalid or has expired.' thrown in /home/lct24/public_html/kiteconnect.php on line 902

Whip commented

It seems like you haven't entered the complete redirect url in the App configuration screen.