☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
May 2018
sujith
May 2018
officialdharam
Access Token Refresh
stocksigma
February 2018
in
Java client
Hi,
Is there a way to refresh the accesstoken.. ie extend its validity. Today the accesstoken got expired after the day started at around 9:25 AM
officialdharam
May 2018
I also saw a refreshToken property and a renewAccessToken method on kiteConnect client.
However, after successful connection, the User object has an empty refreshToken. Could anyone please fix it. So that the accessTokens renewals can be automated.
Here is the response from the API.
{"status":"success","data":{"user_type":"investor","email":"
[email protected]
","user_name":"MY_NAME","user_shortname":"MY_FIRST_NAME","broker":"ZERODHA","exchanges":["BSE","NSE"],"products":["MIS","NRML","CNC","CO","BO"],"order_types":["LIMIT","MARKET","SL","SL-M"],"avatar_url":null,"user_id":"MY_USER_ID","api_key":"MY_API_KEY","access_token":"MY_ACCESS_TOKEN","public_token":"MY_PUBLIC_TOKEN","refresh_token":"","login_time":"2018-05-30 16:18:13"}}
Notice the refresh_token field, this is blank.
Thanks.
sujith
May 2018
You can check out
this thread for more information about refresh token
.
Sign In
or
Register
to comment.
However, after successful connection, the User object has an empty refreshToken. Could anyone please fix it. So that the accessTokens renewals can be automated.
Here is the response from the API.
{"status":"success","data":{"user_type":"investor","email":"[email protected]","user_name":"MY_NAME","user_shortname":"MY_FIRST_NAME","broker":"ZERODHA","exchanges":["BSE","NSE"],"products":["MIS","NRML","CNC","CO","BO"],"order_types":["LIMIT","MARKET","SL","SL-M"],"avatar_url":null,"user_id":"MY_USER_ID","api_key":"MY_API_KEY","access_token":"MY_ACCESS_TOKEN","public_token":"MY_PUBLIC_TOKEN","refresh_token":"","login_time":"2018-05-30 16:18:13"}}
Notice the refresh_token field, this is blank.
Thanks.