I'm also facing same issue. Password is PIN right? here is my code: SmartConnect smartConnect = new SmartConnect("<api_key>"); User user = smartConnect.generateSession(<clientId>, <password>, <totp>);