discoverCredentialOffer
Parses the offer.
Fetches the metadata of the OpenID4VCI issuer, specified in the offer.
Validates the offer against the issuer's metadata, and builds the DiscoveredCredentialOffer object.
It is recommended to display the details of DiscoveredCredentialOffer on the app UI before calling the retrieveCredentials function.
Parameters
URL-encoded credential offer. It is received from the issuer, e.g., using the QR code. Currently only offer by value is supported.
Throws
If the SDK is not initialized before calling this function. See: initialize.
If the offer is invalid or malformed.
If there was a network connection issue while requesting the issuer's metadata.
If the discovery process fails for any reason, other than those listed above. For instance, if there was an unexpected response from the server.