Shoonya-Dev / ShoonyaApi-js

30 stars 20 forks source link

unable to login with api #11

Closed helagoddr closed 1 year ago

helagoddr commented 2 years ago

getting below error

Reply: { request_time: '19:51:00 22-10-2022', stat: 'Not_Ok', emsg: 'Invalid Input : Invalid OTP' }

suresh-n commented 2 years ago

try insert the below code to cred.js top and change the 'twoFA' to token variable.

const totp = require("totp-generator");
const token = totp("authcode");  //change the authcode to authenticator code from the shoonya web.
console.log(token); 
Shoonya-Dev commented 1 year ago

Greetings from FINVASIA!

Thanks for your Concern.

EMSG: 'Invalid Input: Invalid OTP' comes when you enter the wrong or expired otp or totp in OTP or TOTP field

Hope your issue has been resolved with the shared solution by @suresh-n