VKIDAuthCallback

Callback interface for handling the authentication result.

Functions

Link copied to clipboard
abstract fun onAuth(accessToken: AccessToken)

Called upon successful auth. Won't be called if you passed VKIDAuthParams.codeChallenge because in that case we can't validate it. You will receive auth code in onAuthCode and can exchange it to the access token yourself.

Link copied to clipboard
open fun onAuthCode(data: AuthCodeData, isCompletion: Boolean)

Called upon successful first step of auth - receiving auth code which can later be exchanged to access token.

Link copied to clipboard
abstract fun onFail(fail: VKIDAuthFail)

Called upon any failure during auth.