From e189fb16f7812b03a5099f2850e36a499cce615e Mon Sep 17 00:00:00 2001 From: michaelessiet-privy Date: Thu, 25 Sep 2025 12:02:20 +0100 Subject: [PATCH] fix: correct clone commands --- examples/privy-next-cross-app-connect/README.md | 2 +- examples/privy-next-cross-app-provider/README.md | 2 +- examples/privy-next-farcaster/README.md | 2 +- examples/privy-next-session-keys/README.md | 2 +- examples/privy-next-smart-wallets/README.md | 8 ++++---- examples/privy-next-solana/README.md | 6 +++--- examples/privy-next-wagmi/README.md | 6 +++--- examples/privy-react-chrome-extension/README.md | 2 +- examples/privy-react-farcaster/README.md | 6 +++--- examples/privy-react-funding/README.md | 6 +++--- examples/privy-react-permissionless/README.md | 8 ++++---- privy-expo-starter/README.md | 8 ++++---- privy-flutter-starter/README.md | 4 ++-- privy-next-starter/README.md | 2 +- privy-node-starter/README.md | 2 +- privy-react-starter/README.md | 2 +- privy-react-whitelabel-starter/README.md | 2 +- privy-swift-auth0/README.md | 2 +- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/examples/privy-next-cross-app-connect/README.md b/examples/privy-next-cross-app-connect/README.md index 5f5e256..48a2cf3 100644 --- a/examples/privy-next-cross-app-connect/README.md +++ b/examples/privy-next-cross-app-connect/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Privy's React SDK inside a Next. ### 1. Clone the Project ```bash -mkdir -p privy-next-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-next-starter privy-examples-main/privy-next-starter && cd privy-next-starter +npx gitpick privy-io/examples/tree/main/examples/privy-next-cross-app-connect && cd privy-next-cross-app-connect ``` ### 2. Install Dependencies diff --git a/examples/privy-next-cross-app-provider/README.md b/examples/privy-next-cross-app-provider/README.md index 5f5e256..7ef57d0 100644 --- a/examples/privy-next-cross-app-provider/README.md +++ b/examples/privy-next-cross-app-provider/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Privy's React SDK inside a Next. ### 1. Clone the Project ```bash -mkdir -p privy-next-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-next-starter privy-examples-main/privy-next-starter && cd privy-next-starter +npx gitpick privy-io/examples/tree/main/examples/privy-next-cross-app-provider && cd privy-next-cross-app-provider ``` ### 2. Install Dependencies diff --git a/examples/privy-next-farcaster/README.md b/examples/privy-next-farcaster/README.md index f8e0355..bad2025 100644 --- a/examples/privy-next-farcaster/README.md +++ b/examples/privy-next-farcaster/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Privy's React SDK inside a Next. ### 1. Clone the Project ```bash -mkdir -p privy-next-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-next-starter privy-examples-main/privy-next-starter && cd privy-next-starter +npx gitpick privy-io/examples/tree/main/examples/privy-next-farcaster && cd privy-next-farcaster ``` ### 2. Install Dependencies diff --git a/examples/privy-next-session-keys/README.md b/examples/privy-next-session-keys/README.md index 660e22f..fdcf7a5 100644 --- a/examples/privy-next-session-keys/README.md +++ b/examples/privy-next-session-keys/README.md @@ -11,7 +11,7 @@ This example showcases how to integrate Privy's embedded wallets with ZeroDev se ### 1. Clone the Project ```bash -mkdir -p privy-next-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-next-starter privy-examples-main/privy-next-starter && cd privy-next-starter +npx gitpick privy-io/examples/tree/main/examples/privy-next-session-keys && cd privy-next-session-keys ``` ### 2. Install Dependencies diff --git a/examples/privy-next-smart-wallets/README.md b/examples/privy-next-smart-wallets/README.md index 9582e3b..3b1ca77 100644 --- a/examples/privy-next-smart-wallets/README.md +++ b/examples/privy-next-smart-wallets/README.md @@ -15,7 +15,7 @@ This example showcases how to get started using Multi-Chain EVM smart wallets wi ### 1. Clone the Project ```bash -mkdir -p privy-next-smart-wallets && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-next-smart-wallets privy-examples-main/examples/privy-next-smart-wallets && cd privy-next-smart-wallets +npx gitpick privy-io/examples/tree/main/examples/privy-next-smart-wallets && cd privy-next-smart-wallets ``` ### 2. Install Dependencies @@ -81,7 +81,7 @@ export default function Providers({ children }: { children: React.ReactNode }) { ### 2. Create Smart Wallets -Create embedded wallets, smart wallets are automatically provisioned when the SmartWalletsProvider is configured. +Create embedded wallets, smart wallets are automatically provisioned when the SmartWalletsProvider is configured. [`src/components/sections/create-a-wallet.tsx`](./src/components/sections/create-a-wallet.tsx) ```tsx @@ -119,7 +119,7 @@ client.sendTransaction({ to: USDC_ADDRESS, data: encodeFunctionData({ abi: erc20Abi, - functionName: "transfer", + functionName: "transfer", args: [recipientAddress, amount], }), }, @@ -133,4 +133,4 @@ client.sendTransaction({ - [Privy Documentation](https://docs.privy.io) - [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) - [Smart Wallets Guide](https://docs.privy.io/guide/react/smart-wallets) -- [Session Keys Guide](https://docs.privy.io/guide/react/recipes/misc/session-keys) \ No newline at end of file +- [Session Keys Guide](https://docs.privy.io/guide/react/recipes/misc/session-keys) diff --git a/examples/privy-next-solana/README.md b/examples/privy-next-solana/README.md index ee768cb..239760b 100644 --- a/examples/privy-next-solana/README.md +++ b/examples/privy-next-solana/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Solana with Privy's React SDK in ### 1. Clone the Project ```bash -mkdir -p privy-next-solana && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-next-solana privy-examples-main/examples/privy-next-solana && cd privy-next-solana +npx gitpick privy-io/examples/tree/main/examples/privy-next-solana && cd privy-next-solana ``` ### 2. Install Dependencies @@ -60,7 +60,7 @@ Login or sign up using Privy's pre-built modals. [`src/app/page.tsx`](./src/app/page.tsx) ```tsx -import { usePrivy } from "@privy-io/react-auth"; +import { usePrivy } from "@privy-io/react-auth"; const { login } = usePrivy(); login(); ``` @@ -95,4 +95,4 @@ const receipt = await sendTransaction({ - [Privy Dashboard](https://dashboard.privy.io) - [Privy Documentation](https://docs.privy.io) -- [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) \ No newline at end of file +- [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) diff --git a/examples/privy-next-wagmi/README.md b/examples/privy-next-wagmi/README.md index 72c61a9..0f124ef 100644 --- a/examples/privy-next-wagmi/README.md +++ b/examples/privy-next-wagmi/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Wagmi with Privy's React SDK ins ### 1. Clone the Project ```bash -mkdir -p privy-next-wagmi && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-next-wagmi privy-examples-main/examples/privy-next-wagmi && cd privy-next-wagmi +npx gitpick privy-io/examples/tree/main/examples/privy-next-wagmi && cd privy-next-wagmi ``` ### 2. Install Dependencies @@ -60,7 +60,7 @@ Login or sign up using Privy's pre-built modals. [`src/app/page.tsx`](./src/app/page.tsx) ```tsx -import { usePrivy } from "@privy-io/react-auth"; +import { usePrivy } from "@privy-io/react-auth"; const { login } = usePrivy(); login(); ``` @@ -102,4 +102,4 @@ await sendTransaction({ - [Privy Documentation](https://docs.privy.io) - [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) - [Wagmi Documentation](https://wagmi.sh) -- [Privy Wagmi Connector](https://www.npmjs.com/package/@privy-io/wagmi) \ No newline at end of file +- [Privy Wagmi Connector](https://www.npmjs.com/package/@privy-io/wagmi) diff --git a/examples/privy-react-chrome-extension/README.md b/examples/privy-react-chrome-extension/README.md index 3afca54..9c76f02 100644 --- a/examples/privy-react-chrome-extension/README.md +++ b/examples/privy-react-chrome-extension/README.md @@ -7,7 +7,7 @@ This example showcases how to get started using Privy's React SDK inside a React ### 1. Clone the Project ```bash -mkdir -p privy-react-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-react-starter privy-examples-main/privy-react-starter && cd privy-react-starter +npx gitpick privy-io/examples/tree/main/examples/privy-react-chrome-extension && cd privy-react-chrome-extension ``` ### 2. Install Dependencies diff --git a/examples/privy-react-farcaster/README.md b/examples/privy-react-farcaster/README.md index e80e3ae..0acd368 100644 --- a/examples/privy-react-farcaster/README.md +++ b/examples/privy-react-farcaster/README.md @@ -15,7 +15,7 @@ This example showcases how to get started using Farcaster social login and casti ### 1. Clone the Project ```bash -mkdir -p privy-react-farcaster && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-react-farcaster privy-examples-main/examples/privy-react-farcaster && cd privy-react-farcaster +npx gitpick privy-io/examples/tree/main/examples/privy-react-farcaster && cd privy-react-farcaster ``` ### 2. Install Dependencies @@ -64,7 +64,7 @@ Login or sign up using Privy's pre-built Farcaster authentication. [`pages/index.tsx`](./pages/index.tsx) ```tsx -import { usePrivy } from "@privy-io/react-auth"; +import { usePrivy } from "@privy-io/react-auth"; const { login } = usePrivy(); // Login using Privy's prebuilt modal login() @@ -118,4 +118,4 @@ const { hash } = await hubClient.submitCast( - [Farcaster Integration Guide](https://docs.privy.io/guide/react/recipes/misc/farcaster) - [Farcaster Writes Documentation](https://docs.privy.io/guide/react/recipes/misc/farcaster-writes) - [Farcaster Protocol](https://docs.farcaster.xyz/) -- [Neynar Hub API](https://docs.neynar.com/) \ No newline at end of file +- [Neynar Hub API](https://docs.neynar.com/) diff --git a/examples/privy-react-funding/README.md b/examples/privy-react-funding/README.md index 0f690be..02855b4 100644 --- a/examples/privy-react-funding/README.md +++ b/examples/privy-react-funding/README.md @@ -15,7 +15,7 @@ This example showcases how to get started using Privy's native wallet funding fl ### 1. Clone the Project ```bash -mkdir -p privy-react-funding && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-react-funding privy-examples-main/examples/privy-react-funding && cd privy-react-funding +npx gitpick privy-io/examples/tree/main/examples/privy-react-funding && cd privy-react-funding ``` ### 2. Install Dependencies @@ -64,7 +64,7 @@ Login or sign up using Privy's pre-built modals. [`app/page.tsx`](./app/page.tsx) ```tsx -import { usePrivy } from "@privy-io/react-auth"; +import { usePrivy } from "@privy-io/react-auth"; const { login } = usePrivy(); login(); ``` @@ -97,4 +97,4 @@ fundWallet(wallets[0].address, { asset: "USDC", amount: "15" }); - [Privy Dashboard](https://dashboard.privy.io) - [Privy Documentation](https://docs.privy.io) - [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) -- [Funding Guide](https://docs.privy.io/guide/react/recipes/misc/funding) \ No newline at end of file +- [Funding Guide](https://docs.privy.io/guide/react/recipes/misc/funding) diff --git a/examples/privy-react-permissionless/README.md b/examples/privy-react-permissionless/README.md index f649331..ae11d3f 100644 --- a/examples/privy-react-permissionless/README.md +++ b/examples/privy-react-permissionless/README.md @@ -15,7 +15,7 @@ This example showcases how to get started using account abstraction with Privy's ### 1. Clone the Project ```bash -mkdir -p privy-react-permissionless && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=3 -C privy-react-permissionless privy-examples-main/examples/privy-react-permissionless && cd privy-react-permissionless +npx gitpick privy-io/examples/tree/main/examples/privy-react-permissionless && cd privy-react-permissionless ``` ### 2. Install Dependencies @@ -51,7 +51,7 @@ PRIVY_APP_SECRET=your_app_secret_here # NEXT_PUBLIC_PRIVY_AUTH_URL=https://auth.privy.io ``` -**Important:** +**Important:** - Variables prefixed with `NEXT_PUBLIC_` are exposed to the browser. Keep `PRIVY_APP_SECRET` private and server-side only. - This app uses **Base Sepolia** testnet. Make sure to configure your Pimlico project for Base Sepolia in the [Pimlico dashboard](https://dashboard.pimlico.io/). @@ -71,7 +71,7 @@ Login or sign up using Privy's pre-built modals. [`pages/index.tsx`](./pages/index.tsx) ```tsx -import { usePrivy } from "@privy-io/react-auth"; +import { usePrivy } from "@privy-io/react-auth"; const { login } = usePrivy(); login(); ``` @@ -122,4 +122,4 @@ const smartAccountClient = createSmartAccountClient({ - [Privy Documentation](https://docs.privy.io) - [React SDK](https://www.npmjs.com/package/@privy-io/react-auth) - [Permissionless.js Documentation](https://docs.pimlico.io/permissionless) -- [Safe Smart Accounts](https://docs.safe.global/) \ No newline at end of file +- [Safe Smart Accounts](https://docs.safe.global/) diff --git a/privy-expo-starter/README.md b/privy-expo-starter/README.md index 729dcff..fb97be1 100644 --- a/privy-expo-starter/README.md +++ b/privy-expo-starter/README.md @@ -7,7 +7,7 @@ This example showcases how to get started using Privy's Expo SDK inside an Expo ### 1. Clone the Project ```bash -mkdir -p privy-expo-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-expo-starter privy-examples-main/privy-expo-starter && cd privy-expo-starter +npx gitpick privy-io/examples/tree/main/privy-expo-starter && cd privy-expo-starter ``` ### 2. Install Dependencies @@ -39,7 +39,7 @@ Update the `app.json` file with your Privy app credentials: } ``` -**Important:** +**Important:** - Configure an app client in your [Privy Dashboard](https://dashboard.privy.io/apps?page=settings&setting=clients) - For Expo Go development, add `host.exp.Exponent` to Allowed app identifiers in your Dashboard - For iOS passkey support, configure the `associatedDomains` and `passkeyAssociatedDomain` @@ -52,7 +52,7 @@ npm start This will start the Expo development server. You can then: - Press `i` for iOS simulator -- Press `a` for Android emulator +- Press `a` for Android emulator - Scan QR code with Expo Go app on your device ## Core Functionality @@ -84,7 +84,7 @@ const { createWallet } = useCreateWallet(); // Create Ethereum wallet createEthereumWallet({ createAdditional: true }); -// Create Solana wallet +// Create Solana wallet createSolanaWallet({ createAdditional: true, recoveryMethod: "privy" }); // Create Bitcoin/other chain wallets diff --git a/privy-flutter-starter/README.md b/privy-flutter-starter/README.md index 8196b36..a9cb0eb 100644 --- a/privy-flutter-starter/README.md +++ b/privy-flutter-starter/README.md @@ -7,7 +7,7 @@ This example showcases how to get started using Privy's Flutter SDK inside a Flu ### 1. Clone the Project ```bash -mkdir -p privy-flutter-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-flutter-starter privy-examples-main/privy-flutter-starter && cd privy-flutter-starter +npx gitpick privy-io/examples/tree/main/privy-flutter-starter && cd privy-flutter-starter ``` ### 2. Install Dependencies @@ -66,7 +66,7 @@ import 'package:privy_flutter/privy_flutter.dart'; // Create Ethereum wallet await privy.createEthereumWallet(); -// Create Solana wallet +// Create Solana wallet await privy.createSolanaWallet(); ``` diff --git a/privy-next-starter/README.md b/privy-next-starter/README.md index 8369c68..6221d37 100644 --- a/privy-next-starter/README.md +++ b/privy-next-starter/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Privy's React SDK inside a Next. ### 1. Clone the Project ```bash -mkdir -p privy-next-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-next-starter privy-examples-main/privy-next-starter && cd privy-next-starter +npx gitpick privy-io/examples/tree/main/privy-next-starter && cd privy-next-starter ``` ### 2. Install Dependencies diff --git a/privy-node-starter/README.md b/privy-node-starter/README.md index 3fecec0..1305382 100644 --- a/privy-node-starter/README.md +++ b/privy-node-starter/README.md @@ -7,7 +7,7 @@ This example showcases how to get started using Privy's Node.js SDK in a server- ### 1. Clone the Project ```bash -mkdir -p privy-node-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-node-starter privy-examples-main/privy-node-starter && cd privy-node-starter +npx gitpick privy-io/examples/tree/main/privy-node-starter && cd privy-node-starter ``` ### 2. Install Dependencies diff --git a/privy-react-starter/README.md b/privy-react-starter/README.md index 3afca54..db88f26 100644 --- a/privy-react-starter/README.md +++ b/privy-react-starter/README.md @@ -7,7 +7,7 @@ This example showcases how to get started using Privy's React SDK inside a React ### 1. Clone the Project ```bash -mkdir -p privy-react-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-react-starter privy-examples-main/privy-react-starter && cd privy-react-starter +npx gitpick privy-io/examples/tree/main/privy-react-starter && cd privy-react-starter ``` ### 2. Install Dependencies diff --git a/privy-react-whitelabel-starter/README.md b/privy-react-whitelabel-starter/README.md index 7b708e0..65dc6e9 100644 --- a/privy-react-whitelabel-starter/README.md +++ b/privy-react-whitelabel-starter/README.md @@ -11,7 +11,7 @@ This example showcases how to get started using Privy's React SDK inside a React ### 1. Clone the Project ```bash -mkdir -p privy-react-whitelabel-starter && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-react-whitelabel-starter privy-examples-main/privy-react-whitelabel-starter && cd privy-react-whitelabel-starter +npx gitpick privy-io/examples/tree/main/privy-react-whitelabel-starter && cd privy-react-whitelabel-starter ``` ### 2. Install Dependencies diff --git a/privy-swift-auth0/README.md b/privy-swift-auth0/README.md index 11b79c7..332eeb7 100644 --- a/privy-swift-auth0/README.md +++ b/privy-swift-auth0/README.md @@ -7,7 +7,7 @@ This example showcases how to integrate Privy's iOS SDK with Auth0 as a custom a ### 1. Clone the Project ```bash -mkdir -p privy-swift-auth0 && curl -L https://github.com/privy-io/privy-examples/archive/main.tar.gz | tar -xz --strip=2 -C privy-swift-auth0 privy-examples-main/privy-swift-auth0 && cd privy-swift-auth0 +npx gitpick privy-io/examples/tree/main/privy-swift-auth0 && cd privy-swift-auth0 ``` ### 2. Open in Xcode