login problem please mygrate me F3877
-
-
@admin I am setting up the smart api for the first time, I am getting the below response for my code
smart_api
.generateSession("client-id", "pin", "totp")
.then((data) => {
console.log(data);
return smart_api.getProfile();
})
.then((data) => {
console.log(data);
// Profile details
})
.catch((ex) => {
console.log(ex);
//Log error
});{
status: false,
message: 'Invalid totp',
errorcode: 'AB1050',
data: null
}
{
success: false,
message: 'Invalid Token',
errorCode: 'AG8001',
data: ''
} -
@bittu you issue has already been noticed.