Skip to content

Support Pre-Authorized Code Flow

Compare
Choose a tag to compare
@phisakel phisakel released this 21 Jun 13:47
· 235 commits to main since this release
4e681e1

The flow is supported by existing methods:

1 - An issue offer url is scanned. The following method is called: public func resolveOfferUrlDocTypes(uriOffer: String, format: DataFormat = .cbor, useSecureEnclave: Bool = true) async throws -> OfferedIssueModel

(Breaking change, the return value type is OfferedIssueModel instead of [OfferedDocModel])

2 - If OfferedIssueModel.isTxCodeRequired is true, the call to issueDocumentsByOfferUrl must include the transaction code (parameter txCodeValue).

  • Note: for the clientId value the EudiWallet/openID4VciClientId is used.