exchangeInteractionCodeForTokens
suspend fun exchangeInteractionCodeForTokens(remediation: IdxRemediation): OAuth2ClientResult<Token>
Exchanges the IdxRemediation.Type.ISSUE remediation for tokens once IdxResponse.isLoginSuccessful is true.
Return
OAuth2ClientResult.Success wrapping the Token, or OAuth2ClientResult.Error whose exception is an IllegalStateException if the flow was not started or the remediation is not of type IdxRemediation.Type.ISSUE.
Parameters
remediation
the IdxRemediation.Type.ISSUE remediation from the successful IdxResponse.