You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the Embedded wallet UI, your Next app has to be in `app router` mode. When in `pages routing` mode, global CSS file imports throw an error. [Github Discussion](https://github.com/vercel/next.js/discussions/27953).
45
+
To use the Embedded wallet UI, your Next app has to be in `app router` mode. When in `pages routing` mode, global CSS file imports throw an error. [Github Discussion](https://github.com/vercel/next.js/discussions/27953)
46
+
47
+
Embedded wallet relies on browser APIs and it doesn't make sense to run it server-side.
48
+
To avoid errors, the component including `<WalletWidget />` should be marked with `'use client';`
49
+
50
+
HTTPS needs to be configured even for localhost, so that authentication can work accross multiple domains.
51
+
In Next.js you can do this by adding `--experimental-https` to dev command.
52
+
53
+
```sh
54
+
next dev --experimental-https
55
+
```
38
56
39
57
### Nuxt
40
58
41
59
When using Vite as the build tool, a Vite plugin is required for running and building Nuxt apps with Embedded Wallet. This plugin enables Node API in the browser (eg. buffer, crypto).
42
60
43
-
::: warning
44
-
The Embedded wallet integration includes a style (CSS) file imported through JavaScript.
45
-
Nuxt fails to resolve this import by default.
46
-
To avoid errors, the Embedded wallet dependency needs to be added to the [build.transpile](https://nuxt.com/docs/api/nuxt-config#transpile) setting.
47
-
:::
48
-
49
61
```sh
50
62
npm i -D vite-plugin-node-polyfills
51
63
```
52
64
65
+
The Embedded wallet integration includes a style (CSS) file imported through JavaScript.
66
+
Nuxt fails to resolve this import by default.
67
+
To avoid errors, the Embedded wallet dependency needs to be added to the [build.transpile](https://nuxt.com/docs/api/nuxt-config#transpile) setting.
| clientId |`string`| Yes | UUID of the integration that you obtain when creating it on the [Apillon embedded wallet dashboard](https://app.apillon.io/dashboard/service/embedded-wallet). |
173
-
| defaultNetworkId |`number`| No | Chain ID set as default when opening wallet. |
174
-
| networks |`Network[]`| No | Array of network specifications |
175
-
| broadcastAfterSign |`boolean`| No | Automatically broadcast with SDK after confirming a transaction. |
176
-
| disableDefaultActivatorStyle |`boolean`| No | Remove styles from "open wallet" button |
177
-
| authFormPlaceholder |`string`| No | Placeholder displayed in input for username/email |
| clientId |`string`| Yes | UUID of the integration that you obtain when creating it on the [Apillon embedded wallet dashboard](https://app.apillon.io/dashboard/service/embedded-wallet). |
224
+
| defaultNetworkId |`number`| No | Chain ID set as default when opening wallet.|
225
+
| networks |`Network[]`| No | Array of network specifications |
226
+
| broadcastAfterSign |`boolean`| No | Automatically broadcast with SDK after confirming a transaction. |
227
+
| disableDefaultActivatorStyle |`boolean`| No | Remove styles from "open wallet" button |
228
+
| authFormPlaceholder |`string`| No | Placeholder displayed in input for username/email |
178
229
179
230
#### Network Object
180
231
@@ -185,13 +236,23 @@ To find the information for your desired network, visit [chainlist.org](https://
0 commit comments