OZConnectWalletResult

public enum OZConnectWalletResult : Sendable, Equatable, Hashable

Outcome of a connect-wallet operation.

connectWallet(options:) returns one of three results:

  • nil — no valid session and prompt was false. 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-call connectWallet(options:) with the chosen contract id.