Unable to login - Invalid Token AG8001
-
const angelAPIConnect = () => {
- let smart_api = new SmartAPI({
-
api_key: "<API key provided by Smartapi Apps>", // PROVIDE YOUR API KEY HERE
- });
- smart_api
-
.generateSession("<Angel App Client Id>", "Angel App Password")
-
.then((data) => {
-
return smart_api.getProfile();
-
})
-
.then((data) => {
-
console.log("PROFILE::", data);
-
})
-
.catch((ex) => {
-
console.log("EX::", ex);
-
});
I got the error
PROFILE:: {
success: false,
message: 'Invalid Token',
errorCode: 'AG8001',
dat -
This post is deleted! -
@admin Thanks, I have got it done now.
-
HI @mvinayakam Have you migrated your account kindly post your client id here.