Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Logout does not work as it should

    Test
    2
    9
    65
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      ksingh7 last edited by

      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

      K D 2 Replies Last reply Reply Quote 0
      • K
        ksingh7 @ksingh7 last edited by

        Hello @admin team, would really appreciate your response on this. Thank you.

        A 2 Replies Last reply Reply Quote 0
        • A
          admin @ksingh7 last edited by

          Hi @ksingh7 we have noticed your issue we will revert back to you.

          K 1 Reply Last reply Reply Quote 0
          • K
            ksingh7 @admin last edited by

            @admin Thanks for acknowledgement , i will wait

            1 Reply Last reply Reply Quote 0
            • A
              admin @ksingh7 last edited by

              Hi @ksingh7 can you check now it is working now.

              K 1 Reply Last reply Reply Quote 0
              • K
                ksingh7 @admin last edited by

                @admin Thanks for fixing , this works great now

                1 Reply Last reply Reply Quote 0
                • D
                  dsdabhi1 last edited by

                  i cant logou. error is invalid token.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dsdabhi1 last edited by

                    i cant logout in nodejs. after smartapi.logout();
                    in browser i press back button and its shows all my data

                    1 Reply Last reply Reply Quote 0
                    • D
                      dsdabhi1 @ksingh7 last edited by

                      @ksingh7 same problem with me.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post