Functions
discoverCredentialOffer
Parses the credential offer.
- Parses the credential offer.
- Fetches the metadata of the OpenID4VCI issuer
- Validates the offer against the issuer's metadata, and returns the DiscoveredCredentialOffer.
It is recommended to display the details of DiscoveredCredentialOffer on the app UI before calling the retrieveCredentials function.
Signature
function discoverCredentialOffer(
options: string
): Promise<Result<DiscoveredCredentialOffer, MobileCredentialHolderError<DiscoverCredentialOfferErrorType>>>Parameters
Prop
Type
Returns
Promise<Result<DiscoveredCredentialOffer, MobileCredentialHolderError<DiscoverCredentialOfferErrorType>>>
Credential offer as DiscoveredCredentialOffer.
Throws
InvalidParams if the provided arguments are missing or invalid.
MobileCredentialHolderErrorType.SdkNotInitialized if the SDK has not been initialized.
How would you rate this page?