// Example for NextJS
import { PrivyProvider } from "@privy-io/react-auth";
// ... other imports
function MyApp({ Component, pageProps }) {
// ... setup
return (
<PrivyProvider appId="your-app-id" /* ...other config */>
{/* ... rest of your app */}
</PrivyProvider>
);
}
// Example for Create React App
import { PrivyProvider } from "@privy-io/react-auth";
// ... other imports
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<PrivyProvider appId="your-app-id" defaultChain: config[raasNetwork].privyConfig,
supportedChains: [config[raasNetwork].privyConfig], /* ...other config */>
<App />
</PrivyProvider>
</React.StrictMode>
);