CrossmintProvider— SDK initialization (required for all Crossmint features)CrossmintAuthProvider— Authentication state, login/logout, and the auth flow
CrossmintProvider
Root provider for the Crossmint SDK. Must wrap your entire application. Initializes the SDK with your API key and sets up logging.Props
Your Crossmint client-side API key.
Application identifier, sent as
x-app-identifier header.Minimum log level for console output (or “silent” to suppress all output). Logs below this level will not be written to the console. Set to “silent” to completely suppress console output. Defaults to “debug” (all logs shown) for backward compatibility.
Override the base API URL.
Usage
CrossmintAuthProvider
Provides Crossmint authentication to your React Native app: social login (OAuth) and session management. Exposes auth state via theuseCrossmintAuth hook and stores auth material in secure device storage. Must be nested inside CrossmintProvider.
Props
Your app’s deep link scheme(s) (e.g.
"myapp://"), used for OAuth redirects back into your app.Custom title for the auth modal.
Custom route for logging out, for server-side session management.
Callback invoked when the user successfully logs in.
Whether to prefetch OAuth provider URLs when the provider mounts.
Custom route for refreshing the auth token, for server-side session management.
Custom storage provider for auth material. Defaults to browser cookies on web and secure device storage on React Native.
Usage
Note: CrossmintAuthProvider must be nested inside CrossmintProvider. Set appSchema to your app’s deep link scheme so OAuth redirects return to your app.

