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
Copy file name to clipboardExpand all lines: solutions/builder/embedded-wallet/configuration.mdx
+14-8
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
---
2
-
3
-
title: "Embedded Wallet Configuration"
1
+
---
2
+
3
+
title: "Embedded Wallet Configuration"
4
4
description: Configure a Sequence Embedded Wallet in Builder to easily onboard users to your games by integrating OAuth accounts. Learn how to set up login providers like Google Auth and Apple Auth, specify allowed origins for security, set up a recovery wallet, create an initial configuration.
5
5
sidebarTitle: Configuration
6
-
---
7
-
6
+
---
7
+
8
8
9
-
You can configure a [Sequence Embedded Wallet](/solutions/wallets/embedded-wallet/overview) in Builder and integrate your own OAuth accounts to enable easy onboarding to your games. Configuration page in Builder [is available here](https://sequence.build/project/default/embedded-wallet).
9
+
You can configure a [Sequence Embedded Wallet](https://sequence.build/project/default/embedded-wallet?tab=config) in Builder and integrate your own OAuth accounts to enable easy onboarding to your games. Configuration page in Builder [is available here](https://sequence.build/project/default/embedded-wallet).
10
10
11
11
The following sections will explain the various ways to configure using an Embedded Wallet in Builder:
12
12
-[Login Providers](/solutions/builder/embedded-wallet#login-providers): Web2 based authentication providers
@@ -16,11 +16,17 @@ The following sections will explain the various ways to configure using an Embed
16
16
-[Configuration Changes](/solutions/builder/embedded-wallet#configuration-changes): Update configuration details at anypoint with password protection
17
17
-[SDK Integrations](/solutions/builder/embedded-wallet#sdk-integrations): Sequence SDK products that allow developers to implement an Embedded Wallet across platforms
18
18
19
+
20
+
21
+
22
+
23
+
24
+
19
25
## Login Providers
20
-
Sequence Embedded Wallet supports a multitude of login providers such as email, various social logins, and guest wallets. For social logins, you must go through the configuration process for the provider to retrieve a client specific ID to pass into Sequence Builder. We recommend visiting the specific login provider's configuration page for more information on the setup process.
26
+
Sequence Embedded Wallet supports a multitude of login providers such as email, various social logins, and guest wallets. For social logins, you must go through the configuration process for the provider to retrieve a client specific ID to pass into Sequence Builder. We recommend visiting the specific login provider's configuration page for more information on the setup process for each specific provider.
21
27
22
28
## Allowed Origins
23
-
This additional security measure will prevent unauthorized usage of your WaaS configuration outside of domains you whitelisted. Add any development and production URLs under Allowed Origins. By default all subpaths under theses hosts will be allowed.
29
+
This additional security measure will prevent unauthorized usage of your embedded wallet configuration outside of domains you whitelisted. Add any development and production URLs under Allowed Origins. By default all subpaths under theses hosts will be allowed.
24
30
25
31
You must define allowed origins with a valid scheme (i.e. `https`).
cd embedded-wallet-react-boilerplate && cp .env.example .env
94
-
```
90
+
<Steptitle="Connect and Authenticate">
91
+
Open your browser and navigate to `http://localhost:4444`. Click on <b>Connect</b> to initiate the authentication process.
92
+
93
+
You can now test the Embedded wallet with the boilerplate! Now, let's configure your own project.
95
94
</Step>
96
-
<Steptitle="Install Packages and start app">
97
95
98
-
<CodeGroup>
99
-
```bash pnpm
100
-
pnpm install && pnpm dev
101
-
```
96
+
<Steptitle="Configure your Project">
97
+
<ahref="https://sequence.build/project/default/embedded-wallet?tab=config">Navigate to embedded wallet configuration</a> for your project on Builder. Enter your recovery wallet address and set a password, then <b>Create Configuration</b>. Be aware that this configuration cannot be changed at a later date.
98
+
</Step>
102
99
103
-
```bash npm
104
-
npm install && npm run dev
100
+
<Steptitle="Update Environment Variables">
101
+
Navigate to the cloned directory and copy & paste this configuration in the file `.env` replacing the existing configuration.
102
+
103
+
Ensure you update the `PROJECT_ACCESS_KEY` and `WAAS_CONFIG_KEY` with the new keys located on the <ahref="https://sequence.build/project/default/embedded-wallet?tab=integration">integration page</a>.
Save your `.env` file, run `pnpm dev` from the root directory, and navigate back to `http://localhost:4444`. Sign into your wallet using email to test the wallet actions again.
111
119
112
-
</Step>
113
-
<Steptitle="Connect and Authenticate">
114
-
Navigate to `localhost:4444` and click connect to try out the authentication.
115
-
</Step>
116
-
<Steptitle="Use Sequence Embedded Wallets!">
120
+
You are done! You can now see your wallet connection on the Overview page and the keys are scoped to your project.
117
121
118
-
Now that you have a working authentication, you can take look at our examples for the most common functions:
-[Verify a user on your backend](/sdk/headless-wallet/verification#prerequisite-deployment-of-a-parent-wallet)
123
122
</Step>
124
123
</Steps>
125
124
125
+
As next steps:
126
+
- You can now setup various [social authentication providers](/solutions/builder/embedded-wallet#login-providers).
127
+
-[Use more features of our web-sdk](/sdk/web/guides/send-sponsored-tx).
128
+
-[Request a ID token from Sequence to validate users on your backend](/sdk/headless-wallet/verification).
126
129
127
-
<Tip>
128
-
We are using example variables in the .env file, so we recommend creating a project on [Sequence Builder](https://sequence.build/project/default/wallet/embedded-wallet) and [setting up your own wallet configuration](/solutions/builder/embedded-wallet) and update the environment variables to use more social providers for authentication, customize email templates, and more.
0 commit comments