Skip to main content
Final Class Configuration for CrossmintWalletProvider.
Provide either a clientConfig (the provider builds dependencies for you) or a fully-formed dependencies bundle. Both together is invalid. Most apps want the clientConfig path:

Constructors

CrossmintWalletProviderConfig

Creates a provider config. Either clientConfig or dependencies must be non-null.

Properties

clientConfig

Config used to build a new CrossmintClient. Mutually exclusive with dependencies.

walletControllerConfig

Config for the wallet controller the provider creates.

dependencies

Pre-built dependencies — use this when you want to share a client or controller between mount points. Mutually exclusive with clientConfig.

disposeInjectedDependencies

When the provider was handed pre-built dependencies, controls whether they are disposed alongside the provider. Defaults to false — the caller retains ownership.

authLinkProvider

Optional resolver for the OAuth callback URL. Leave null to use the default deep-link resolver.

startAuthCallbackRouter

When true (default) the provider starts CrossmintAuthCallbackRouter automatically so OAuth redirects land correctly.

autoLoadWallet

When true (default) the provider triggers ensureLoaded() on the wallet controller once a session is detected.

jwt

BYOA JWT — when supplied, the provider seeds auth.setJwt(jwt) on startup (Bring Your Own Auth). Apps not using BYOA can leave this null.

otpPromptBuilder

Builder for the default OTP prompt UI — pass crossmintDefaultOtpPromptBuilder for the Material default. Leave null to drive OTP UI headlessly via walletController.otp.

mountBridgeHosts

When true (default) the provider mounts CrossmintWalletHost so the hidden signer bridge has a place to run. Set to false only if your subtree already hosts the bridge.

Methods

isEquivalentTo