CrossmintProvider— SDK initialization (required for all Crossmint features)CrossmintAuthProvider— Authentication state, login/logout, and the auth modal
CrossmintProvider
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.
Extension identifier, sent as
x-extension-id header.JWT token for authentication.
Override the base API URL.
Usage
CrossmintAuthProvider
Provides Crossmint authentication to your app: email OTP, social login (OAuth), and session management. Exposes auth state via theuseCrossmintAuth hook and renders the login modal when login() is called. Must be nested inside CrossmintProvider.
Props
Custom UI configuration for the auth modal (colors, fonts, border radius).
Custom title for the auth modal.
Login methods to enable (e.g.
["email", "google"]). Defaults to ["email", "google"].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. Defaults to
true.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.
Custom terms of service text shown in the auth modal.

