Navigation

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

    TOTP Login

    General Discussion
    0
    1
    5
    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
      logiclump last edited by

      Hello Team I want to login with password but its showing

      {
      "status": false,
      "message": "Invalid totp",
      "errorcode": "AB1050",
      "data": null
      }

      My postmain request is

      const axios = require('axios');
      let data = JSON.stringify({
      "clientcode": "M62652979",
      "password": "1122",
      "totp": "OSETRQWV3ID22Z54BVICOPILME",
      "state": "statevariable"
      });

      let config = {
      method: 'post',
      maxBodyLength: Infinity,
      url: 'https://apiconnect.angelone.in/rest/auth/angelbroking/user/v1/loginByPassword',
      headers: {
      'X-PrivateKey': 'D3c8q8qn',
      'Accept': 'application/json',
      'X-SourceID': 'WEB',
      'X-ClientLocalIP': '122.176.157.197',
      'X-ClientPublicIP': '122.176.157.197',
      'X-MACAddress': '122.176.157.197',
      'X-UserType': 'USER',
      'Content-Type': 'application/json',
      'Authorization': '••••••',
      'Cookie': 'TS0179ac75=0167ca9f9b9c6db24b05e234b05ac633a59b67425c9f5076a3dc54a8e6ceda2ea67321aa57b606a973a95482ad801ed29fb83e60fc'
      },
      data : data
      };

      axios.request(config)
      .then((response) => {
      console.log(JSON.stringify(response.data));
      })
      .catch((error) => {
      console.log(error);
      });

      Can you please explain how its happening

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