setCallbacks
fun setCallbacks(onAuth: (oAuth: OneTapOAuth?, accessToken: AccessToken) -> Unit, onAuthCode: (data: AuthCodeData, isCompletion: Boolean) -> Unit = { _, _ -> }, onFail: (oAuth: OneTapOAuth?, fail: VKIDAuthFail) -> Unit = { _, _ -> })
Callbacks that provide auth result for version with multibranding.
Parameters
onAuth
A callback to be invoked upon a successful auth.
onAuthCode
A callback to be invoked upon successful first step of auth - receiving auth code which can later be exchanged to access token.
onFail
A callback to be invoked upon an error during auth.