Navigation

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

    How long can a jwtToken be used for?

    General Discussion
    0
    4
    67
    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.
    • L
      laskshmi last edited by

      Good morning mates,
      Thanks in advance for reading this post.

      Lets say, On a Monday morning 10 AM, I pass clientCode,password and totp to the loginByPassword URL https://apiconnect.angelbroking.com/rest/auth/angelbroking/user/v1/loginByPassword and get the jwtToken back in the reposnse.

      How long does this token stay valid??. Can i use the token for a entire day or do i have to generate/refresh the token every 1 hour or so ??

      Can someone clarify this.

      L 1 Reply Last reply Reply Quote 0
      • L
        laskshmi @laskshmi last edited by

        Update:
        Correct me if i am wrong. @admin
        My observation is that a token I generated around 8 AM is still valid till 9.30 PM. I guess we can just generate one token per day. 🙂

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

          Hi @laskshmi , jwtTokens are valid till 5 am of the subsequent day, unless you have logged out of the SmartAPI session or have reset you Angel One account password or m-pin during the day.

          L 1 Reply Last reply Reply Quote 0
          • L
            laskshmi @admin last edited by

            @admin
            Got it. Thanks for the reply. 👍

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