Setup
Config & Provider
Setup configs and providers.
Note: don't deploy production code where you're using client side environment variables,
like in our case VITE_PRIVY_APP_ID, this is just for demo purposes.
1. src/lib/config.ts setup
The only config we're using for this simple project is the Privy config that will then be passed into the PrivyProvider component.
Note: createOnLogin: "all-users" means that all the connected users will have embedded wallets created for them automatically.
This is important since we rely on the embedded wallet to act as our EOA that would be enhance with code.
2. src/lib/main.tsx setup
This would be our main entry point for the app, and we want to wrap the app in the PrivyProvider component.
Should be it for our main.tsx file, let's move on to the next section.