Access Token Refresh

stocksigma
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
    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.
Sign In or Register to comment.