OZConnectWalletResult
public enum OZConnectWalletResult : Sendable, Equatable, Hashable
Outcome of a connect-wallet operation.
connectWallet(options:) returns one of three results:
nil— no valid session andpromptwasfalse. The caller should show a login UI.connected(credentialId:contractId:restoredFromSession:)— a single contract was resolved for the credential. The kit’s connected state has been set and the session has been saved.ambiguous(credentialId:candidates:)— the indexer reported multiple contracts where the passkey is registered. The kit’s connected state has NOT been set; the caller must let the user pick a candidate and re-callconnectWallet(options:)with the chosen contract id.
-
A single contract was resolved for the credential.
Declaration
Swift
case connected(credentialId: String, contractId: String, restoredFromSession: Bool) -
The indexer returned more than one contract for the credential. The caller must let the user pick a candidate.
Declaration
Swift
case ambiguous(credentialId: String, candidates: [String]) -
Base64URL-encoded credential identifier carried by both arms.
Declaration
Swift
public var credentialId: String { get }
View on GitHub
Install in Dash