Logout does not work as it should
-
Hi, here is the bug that i just now discovered
The logout API is not actually expiring my JWT token. Upon hitting the logout api https://apiconnect.angelbroking.com/rest/secure/angelbroking/user/v1/logout i am getting a successful response
{ "status": true, "message": "SUCCESS", "errorcode": "", "data": "Logout Successfully" }
At this point i expect my token should get expire and any API call should fail, until i re-login. However i am able to execute all the APIs, for example this is the output from getHolding API
{ "status": true, "message": "SUCCESS", "errorcode": "", "data": [ { "tradingsymbol": "xxx", "exchange": "NSE", "isin": "INE528G01035", "t1quantity": x, "realisedquantity": 0, "quantity": x, "authorisedquantity": 0, "profitandloss": 0.0, "product": "DELIVERY", "collateralquantity": null, "collateraltype": null, "haircut": 0.0, "averageprice": 14.3163, "ltp": 14.05, "symboltoken": "1xxx", "close": 14.200000000000001 } ] }
Can some please advice how to securely logout from the APIs
-
Hello @admin team, would really appreciate your response on this. Thank you.
-
Hi @ksingh7 we have noticed your issue we will revert back to you.
-
@admin Thanks for acknowledgement , i will wait
-
Hi @ksingh7 can you check now it is working now.
-
@admin Thanks for fixing , this works great now
-
i cant logou. error is invalid token.
-
i cant logout in nodejs. after smartapi.logout();
in browser i press back button and its shows all my data -
@ksingh7 same problem with me.