Invalid TOTP Error Code AB1050
-
Hi Team,
Why there is always problem with TOTP , even though you follow all the correct steps:
pyotp.TOTP(token).now()
Result:
{'status': False, 'message': 'Invalid totp', 'errorcode': 'AB1050', 'data': None} -
Attaching a sample code for generating TOTP using pyotp.
import pyotp as tp
Define your secret key
secret_key = "SECRET CODE HERE" # Replace this with your actual secret key
Generate TOTP
totp = tp.TOTP(secret_key)
current_otp = totp.now()Regards,
SmartAPI Team