Navigation

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

    Python SDK Missing Function for MPIN Login (generateSessionByMobile)

    Python SDK
    1
    1
    2
    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.
    • S
      swappi_shinde last edited by

      Hello Angel One Team and Community,

      I am trying to authenticate with the SmartAPI using the official smartapi-python library, but I am blocked by the login method.

      The Problem:
      My account requires an MPIN-based login. When I use the standard generateSession() function with my password and TOTP, the API correctly rejects it with the error: "LoginbyPassword is not allowed. Please switch to Login by MPIN now. (Error code: AB7001)".

      Troubleshooting Steps I've Already Taken:

      I have uninstalled any old versions of the library.

      I have installed the absolute latest version directly from your official GitHub repository.

      I have programmatically confirmed that this latest library does not contain a generateSessionByMobile function or any other method for an MPIN login.

      This means my account requires a login method that is not available in your public Python library.

      Could you please provide the correct, working Python code snippet for a programmatic login using an MPIN?

      Thank you for your help.

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