Navigation

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

    generateToken throws error NodeJS SDK

    Test
    0
    4
    16
    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.
    • H
      Hemanand last edited by

      There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,

      there is issue with setting public token statement. Current statement,

      self.setPublicToken(token_data.data.refreshToken);

      This should be,

      self.setPublicToken(response.data.refreshToken);

      M 2 Replies Last reply Reply Quote 0
      • M
        Moderator_3 @Hemanand last edited by

        @Hemanand

        Code will be verified and fixed.
        But that will not have any issue in your workflow.

        Regards,
        SmartAPI Team

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

          @Hemanand said in generateToken throws error NodeJS SDK:

          There seems to issue with smartapi-javascript nodejs sdk.. In file smartapi-connect.js, generateToken method,

          there is issue with setting public token statement. Current statement,

          self.setPublicToken(token_data.data.refreshToken);

          This should be,

          self.setPublicToken(response.data.refreshToken);

          1 Reply Last reply Reply Quote 0
          • S
            suburangs @Moderator_3 last edited by

            @Moderator_3

            Code verified facing similar issue in python sdk

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