getDeviceCode

abstract fun getDeviceCode(previousCodeWasIncorrect: Boolean): CompletableFuture<String>

This method is called when the account being logged into requires 2-factor authentication using the authenticator app.

Return

The 2-factor auth code used to log in. This is the code that can be received from the authenticator app.

Parameters

previousCodeWasIncorrect

True when previously provided code was incorrect.