Skip to content

Commit ef2b9f8

Browse files
committed
secret and publisher key
1 parent 6e5724f commit ef2b9f8

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

docs.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Mini app url: [https://verify.base.dev](https://verify.base.dev)
7979

8080
---
8181

82-
## Integration Steps
82+
## Integration Example Steps
8383

8484
### Step 1: Set Up Configuration
8585

@@ -89,6 +89,7 @@ Create `lib/config.ts`:
8989
export const config = {
9090
appUrl: 'https://your-app.com',
9191
baseVerifySecretKey: process.env.BASE_VERIFY_SECRET_KEY,
92+
baseVerifyPublisherKey: process.env.BASE_VERIFY_PUBLISHER_KEY,
9293
baseVerifyUrl: 'https://verify.base.dev/v1',
9394
baseVerifyMiniAppUrl: 'https://verify.base.dev',
9495
}
@@ -98,9 +99,23 @@ Create `.env.local`:
9899

99100
```shell
100101
BASE_VERIFY_SECRET_KEY=your_secret_key_here
102+
BASE_VERIFY_PUBLISHER_KEY=your_publisher_key_here
101103
```
102104

103-
Contact [rahul.patni@coinbase.com](mailto:rahul.patni@coinbase.com) to get your secret key
105+
Contact [rahul.patni@coinbase.com](mailto:rahul.patni@coinbase.com) to get your secret key and publisher key.
106+
107+
**Key Types:**
108+
109+
You will be provided both a **publisher key** or a **secret key**.
110+
111+
- **Publisher Key**
112+
- Public identifier, safe to expose in client-side code
113+
- Used to identify your app
114+
- Can be included in frontend bundles
115+
116+
- **Secret Key**
117+
- Private credential, never expose to clients
118+
- Used only on the server for privileged operations (auth, writes, webhooks)
104119

105120
### Step 2: Create SIWE Signature Generator
106121

0 commit comments

Comments
 (0)