CrefyConnectProvider
The CrefyConnectProvider is the root component that wraps your application and provides Crefy Connect functionality to all child components.
Usage
Props
Supported Chains
"sepolia" - Ethereum Sepolia testnet
"mainnet" - Ethereum mainnet
- More chains coming soon…
Supported Login Methods
"google" - Google OAuth authentication
"email" - Email/password authentication
"wallet" - External wallet connection (MetaMask, WalletConnect, etc.)
"github" - GitHub OAuth authentication
- More methods coming soon…
Example: Vite.js Setup
Example: Next.js 13+ (App Router)
Important Notes
Provider Placement: The CrefyConnectProvider must be mounted at the root of your app to work correctly. All child components can then use Crefy Connect hooks.
App ID Security: Never expose your App ID in client-side code if it contains sensitive permissions. For production apps, consider using environment variables.