@coinbase/cdp-hooks 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -25,6 +25,13 @@ yarn add @coinbase/cdp-core @coinbase/cdp-hooks
|
|
|
25
25
|
1. Sign in or create an account on the [CDP Portal](https://portal.cdp.coinbase.com)
|
|
26
26
|
2. On your dashboard, select a project from the dropdown at the at the top, and copy the Project ID
|
|
27
27
|
|
|
28
|
+
### Allowlist your local app
|
|
29
|
+
|
|
30
|
+
1. Navigate to the [Embedded Wallet Configuration](https://portal.cdp.coinbase.com/products/embedded-wallets/cors)
|
|
31
|
+
in CDP Portal, and click Add origin to include your local app
|
|
32
|
+
2. Enter the origin of your locally running app - e.g., `http://localhost:3000`
|
|
33
|
+
3. Click Add origin again to save your changes
|
|
34
|
+
|
|
28
35
|
|
|
29
36
|
### Setup Provider
|
|
30
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": ">=18.2.0",
|
|
17
|
-
"@coinbase/cdp-core": "^0.0.
|
|
17
|
+
"@coinbase/cdp-core": "^0.0.9"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
"@size-limit/webpack": "^11.2.0",
|
|
30
30
|
"@size-limit/webpack-why": "^11.2.0",
|
|
31
31
|
"size-limit": "^11.2.0",
|
|
32
|
-
"@coinbase/cdp-core": "^0.0.
|
|
32
|
+
"@coinbase/cdp-core": "^0.0.9"
|
|
33
33
|
},
|
|
34
34
|
"size-limit": [
|
|
35
35
|
{
|
|
36
36
|
"name": "full-package",
|
|
37
37
|
"path": "./dist/esm/index.js",
|
|
38
|
+
"running": false,
|
|
38
39
|
"import": "*",
|
|
39
40
|
"limit": "65 KB"
|
|
40
41
|
},
|
|
@@ -42,12 +43,14 @@
|
|
|
42
43
|
"name": "config-only",
|
|
43
44
|
"path": "./dist/esm/index.js",
|
|
44
45
|
"import": "{ CDPHooksProvider, useConfig, useIsInitialized }",
|
|
46
|
+
"running": false,
|
|
45
47
|
"limit": "65 KB"
|
|
46
48
|
},
|
|
47
49
|
{
|
|
48
50
|
"name": "auth-hooks-only",
|
|
49
51
|
"path": "./dist/esm/index.js",
|
|
50
52
|
"import": "{ CDPHooksProvider, useSignInWithEmail, useVerifyEmailOTP, useCurrentUser, useIsSignedIn, useSignOut }",
|
|
53
|
+
"running": false,
|
|
51
54
|
"limit": "65 KB"
|
|
52
55
|
}
|
|
53
56
|
],
|