authorize
Initiates and completes the authorization flow with the identity provider.
This suspending function will:
Configure the authorization request using the provided idpClient
Launch the appropriate UI for user authentication
Process the authentication response
Return the authentication result
Implementations should handle all provider-specific details, including error scenarios and user cancellation.
Return
IdpResult containing the authentication token and any additional parameters
Parameters
idpClient
The client configuration containing parameters required for authorization
Throws
if the authentication fails or is cancelled