OZConnectWalletOptions

public struct OZConnectWalletOptions : Sendable, Equatable, Hashable

Options controlling how connectWallet(options:) resolves the credential and contract.

All fields default to permissive values so a zero-argument call performs a silent session check.

Configuration Behaviour
(default) Restore session if valid; return nil otherwise.
credentialId and/or contractId Direct connect, skip the session check.
fresh = true Skip the session, always trigger WebAuthn.
prompt = true Restore session if valid, trigger WebAuthn otherwise.
fresh = true, prompt = true fresh takes priority; always WebAuthn.
  • Connect directly using this credential identifier (Base64URL-encoded). When provided alone, the contract address is resolved via the storage → derivation → indexer cascade.

    Declaration

    Swift

    public let credentialId: String?
  • Connect directly to this contract address (C… strkey). Must be used with credentialId.

    Declaration

    Swift

    public let contractId: String?
  • Force fresh WebAuthn authentication, skipping the session-restore step.

    Declaration

    Swift

    public let fresh: Bool
  • When true, trigger WebAuthn authentication if no valid session exists. When false (default), connectWallet returns nil when no session can be restored.

    Declaration

    Swift

    public let prompt: Bool
  • Undocumented

    Declaration

    Swift

    public init(
        credentialId: String? = nil,
        contractId: String? = nil,
        fresh: Bool = false,
        prompt: Bool = false
    )