authorize

suspend fun authorize(redirectUri: Uri = "".toUri(), idpRequestHandler: IdpRequestHandler = getRequestHandler(redirectUri)): Result<Unit>

Authorizes the user using the specified IdP.

Return

A Result object indicating success or failure.

Parameters

redirectUri

The redirect URI for the browser-based IdP authentication.

idpRequestHandler

The IdP request handler to use, if null will use the predefined handler.