Same for my accounts as well.. Looking at the apps configuration at https://smartapi.angelbroking.com/apps, seems active app is missing
Hemanand
@Hemanand
Best posts made by Hemanand
Latest posts made by Hemanand
-
RE: Unable to login: stuck at Enter Pin
-
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);
-
ERROR in generateToken function
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);
-
Login flow without password / username
@administrators @SmartAPI-Group
Could someone help me in understanding to implement login flow without username / password. But by using oauth flow like using public SmartAPI login endpoint
https://smartapi.angelbroking.com/publisher-login?api_key=xxx
Its mentioned after successful login, user gets redirected to the URL specified under MyApps. With the URL we pass auth_token & feed_token as query parameters.
The redirection indeed works, but I get only "auth_token" & "feed_token"
But in docs mentioned, need "access_token" to make any further transactions.
Documentation is not very clear on this login flow and also forum / FAQ not much help. Could you share input on how exactly this flow is implemented ?
Thanks.
-
Login without using username & password
Could you share how to implement login flow without using username, password & TOTP.. So more using oauth 2 kinda flow.
From doc, could see for oauth login url would be https://smartapi.angelbroking.com/publisher-login?api_key=xxx
which then redirects to the url mentioned in the app with auth_token & feed_token as query parameters.
As part of generate token api, we need refreshToken api as request paylod but how to get that ?
Could you share detailed steps how to implement this login flow ? Or smart api does not support such login flow ?