Navigation

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

    Refresh token url

    NodeJS SDK
    0
    3
    10
    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.
    • R
      rahul00125 last edited by

      I want to use refresh token for update daily totp and JWT token but there is no refresh token end point url in document. So please guide me.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @rahul00125 last edited by

        Hi @rahul00125

        In login response you'll get refresh token. You can make of use of entire session. With that refresh token you can generate JWT token & refresh token with below Generate Token API.

        API Doc
        https://smartapi.angelbroking.com/docs/User#flow

        API URL :
        https://apiconnect.angelone.in/rest/auth/angelbroking/jwt/v1/generateTokens

        Sample Request :
        {
        "refreshToken": "3MzM1MDM4Mzh9.oYwF7PD68xyVZrwi-ku1ZWlMHmU8Wpwy1e5x2ZO9Kmx3Aw0pj2tkqHlk0_vQXJfAccKo6cM5GBo8qGfqMaZm_A"
        }

        Sample Response :
        {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": {
        "jwtToken": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IkRJWUQyMjgxMyIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJ0b2tlbiI6ImV5SmhiR2NpT2lKU1V6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUoxYzJWeVgzUjVjR1VpT2lKamJHbGxibl"
        }
        }

        _ 1 Reply Last reply Reply Quote 0
        • _
          _gaurav @Moderator_3 last edited by

          @Moderator_3 Hello, till when a generated access token remains valid ? If I generate it at morning 9AM, when do I have to request a new one with refresh token ?

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