OnAuthWithOAuth

interface OnAuthWithOAuth : OnAuth

OAuth authentication callback for authWithOAuth and authWithOAuth.

Functions

onCancel
Link copied to clipboard
abstract fun onCancel(error: WebcomError)
This callback is called when the final user cancels the authentication operation, typically by closing the authentication WebView (using the 'back' button).
onComplete
Link copied to clipboard
abstract fun onComplete(@Nullable response: OnAuth.AuthResponse)
Called when the authentication is successful
onError
Link copied to clipboard
abstract fun onError(error: Null)
Called when an error happens
abstract fun onError(error: WebcomError)
Called when the authentication fails and/or the token is invalid