diff --git a/other/sns-example/.env.example b/other/sns-example/.env.example new file mode 100644 index 000000000..a0b7c1876 --- /dev/null +++ b/other/sns-example/.env.example @@ -0,0 +1 @@ +VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID diff --git a/other/sns-example/.gitignore b/other/sns-example/.gitignore new file mode 100644 index 000000000..088739f89 --- /dev/null +++ b/other/sns-example/.gitignore @@ -0,0 +1,25 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* +yarn.lock + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/other/sns-example/README.md b/other/sns-example/README.md new file mode 100644 index 000000000..f831d7402 --- /dev/null +++ b/other/sns-example/README.md @@ -0,0 +1,48 @@ +# Web3Auth React Solana Quick Start + +This example demonstrates how to integrate Web3Auth into a React application for the Solana blockchain. + +## Prerequisites +- Node.js 20+ +- npm +- A Web3Auth Client ID (get one from [Web3Auth Dashboard](https://dashboard.web3auth.io)) + +## Quick Start + +### 1. Clone the repository +```bash +git clone https://github.com/Web3Auth/web3auth-examples.git +``` + +### 2. Navigate to the example +```bash +cd web3auth-examples/quick-starts/react-solana-quick-start +``` + +### 3. Install dependencies +```bash +npm install +``` + +### 4. Configure environment variables +Create a `.env` file and add your Web3Auth Client ID: +```bash +VITE_WEB3AUTH_CLIENT_ID=YOUR_WEB3AUTH_CLIENT_ID +``` + +### 5. Run the application +```bash +npm run dev +``` + +Visit `http://localhost:5173` in your browser to see the application running. + +## 📚 Resources + +- [Web3Auth Documentation](https://web3auth.io/docs) +- [SDK References](https://web3auth.io/docs/sdk) +- [Developer Dashboard](https://dashboard.web3auth.io) +- [Web3Auth Community](https://web3auth.io/community) + +## License +MIT diff --git a/other/sns-example/index.html b/other/sns-example/index.html new file mode 100644 index 000000000..f45261b2f --- /dev/null +++ b/other/sns-example/index.html @@ -0,0 +1,19 @@ + + +
+ + + + +