CredentialOffer

interface CredentialOffer

The public interface for a CredentialOffer use case. Whenever credentials aka an com.youniqx.walletsdk.attestation.Attestation is available to a user, the offer is started by an URL provided via QR-Code or DeepLink. The content of this URL has to be passed to retrieveFromCredentialOffer to start the process of downloading and saving the credentials.

Inheritors

Functions

Link copied to clipboard
abstract fun continueWithAuthCodeUrl(authCodeUrl: String): Flow<CredentialDownloadEvent>

Second part of the process of downloading and saving credentials. Returns events and errors through the process of downloading and saving an previously offered com.youniqx.walletsdk.attestation.Attestation. After an external authorization via an URL returned in CredentialOfferEvent.OpenUrlForAuthEvent is finished, a URL containing an authorization token should be handed as deeplink to the app, see App Configuration for details.

Link copied to clipboard
abstract fun retrieveFromCredentialOffer(credentialOfferIntentData: String): Flow<CredentialOfferEvent>

Start of the process of downloading and saving credentials. Returns events and errors through the process of offering an com.youniqx.walletsdk.attestation.Attestation for download to the app.