login

fun login(username: String, password: String, forceLogin: Boolean = false): Boolean

Login to instagram with given username/password and interactively handle all scenarios of Two factor authentication code and/or challenge required and/or login confirmation by showing options in prompt.

Return

Boolean indicating successfully logged in or not

Parameters

username

Username of instagram account

password

Password of instagram account