Skip to content

Commit 960789b

Browse files
authored
Merge pull request 0xPolygon#2714 from yashovardhan/main
Add MetaMask Embedded Wallets
2 parents e2b1a47 + 51aaf06 commit 960789b

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

docs/tools/wallets/metamask-ew.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
!!!caution
2+
Content disclaimer
3+
4+
Please view the third-party content disclaimer [here](https://github.com/0xPolygon/polygon-docs/blob/main/CONTENT_DISCLAIMER.md).
5+
6+
7+
Integrate **MetaMask Embedded Wallets** (formerly *Web3Auth*) to enable instant, secure, and seamless wallet onboarding for your users on **Polygon** — with **no additional code** required.
8+
9+
MetaMask Embedded Wallets lets users sign in with familiar logins (Google, Apple, Discord, etc.) and instantly creates a **non-custodial wallet** connected to **Polygon**.
10+
It’s fast, simple, and fully managed through the MetaMask Dashboard.
11+
12+
## Why Use MetaMask Embedded Wallets on Polygon?
13+
14+
* **Instant onboarding:** Use OAuth providers like Google or Apple for quick user authentication
15+
* **Simple configuration:** Set up Polygon once through the dashboard
16+
* **Non-custodial:** Users retain full control of their private keys
17+
* **Cross-platform support:** Works on web, mobile, and game engines
18+
* **Web2 \- friendly UX:** Familiar login and onboarding flows
19+
20+
### Key Features
21+
22+
* **External Wallet Aggregator:** Integrates SSO logins with existing crypto wallets (e.g. MetaMask), compatible with EVM and Solana.
23+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/features/external-wallets/)
24+
25+
* **Flexible Authentication:** Supports Google, Facebook, X, passwordless email, and custom OAuth2.0, enabling frictionless Web2-to-Web3 onboarding.
26+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/dashboard/authentication/)
27+
28+
* **Group Connections:** Link multiple SSOs using a shared unique ID (e.g. same email) so users can access the same wallet via different logins.
29+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/authentication/group-connections/)
30+
31+
* **Wallet Pregeneration:** Create wallets pre-registration using unique identifiers (e.g. email) to pre-fund for airdrops or bonuses.
32+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/features/wallet-pregeneration/)
33+
34+
* **Multi-Factor Authentication:** Enforce additional security layers like OTPs or secondary SSOs for sensitive use cases.
35+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/sdk/vue/advanced/mfa/)
36+
37+
* **Cross-Platform SDKs:** Available for React, Vue, JavaScript, Android, iOS, React Native, Flutter, Unity, and Unreal—users access the same wallet across devices.
38+
39+
* **Native Smart Accounts:** Enable gas sponsorships, batch/automated transactions, spending caps, and automatic paymaster/bundler setup (Infura \+ Pimlico).
40+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/features/smart-accounts/)
41+
42+
* **UI Flexibility:** Choose between prebuilt white-labelled UI or headless SDK for full customization and brand control.
43+
🔗 [Docs](https://docs.metamask.io/embedded-wallets/sdk/vue/advanced/wallet-services/)
44+
45+
## **1\. Dashboard Configuration (No Code Required)**
46+
47+
All setup happens inside the **MetaMask Embedded Wallets Dashboard** — no SDK changes or code edits are required.
48+
49+
### **Steps**
50+
51+
1. Go to the [MetaMask Embedded Wallets Dashboard](https://dashboard.web3auth.io/).
52+
2. Select your project or create a new one.
53+
3. Navigate to the **Chains** tab.
54+
4. Search for **Polygon**.
55+
5. Save your configuration.
56+
57+
✅ Once enabled, all MetaMask Embedded Wallets SDKs (React, Vue, JavaScript) will automatically connect to **Polygon****no code updates needed**.
58+
59+
## **3\. Multi-Platform SDKs**
60+
61+
MetaMask Embedded Wallets supports every major developer environment — so your dApps, mobile apps, and games can all connect seamlessly to **Polygon**.
62+
63+
| Platform | SDK Documentation |
64+
| ----- | ----- |
65+
| **React** | [docs.metamask.io/embedded-wallets/sdk/react](https://docs.metamask.io/embedded-wallets/sdk/react) |
66+
| **Vue** | [docs.metamask.io/embedded-wallets/sdk/vue](https://docs.metamask.io/embedded-wallets/sdk/vue) |
67+
| **JavaScript** | [docs.metamask.io/embedded-wallets/sdk/js](https://docs.metamask.io/embedded-wallets/sdk/js) |
68+
| **Node.js** | [docs.metamask.io/embedded-wallets/sdk/node](https://docs.metamask.io/embedded-wallets/sdk/node) |
69+
| **Android** | [docs.metamask.io/embedded-wallets/sdk/android](https://docs.metamask.io/embedded-wallets/sdk/android) |
70+
| **iOS** | [docs.metamask.io/embedded-wallets/sdk/ios](https://docs.metamask.io/embedded-wallets/sdk/ios) |
71+
| **React Native** | [docs.metamask.io/embedded-wallets/sdk/react-native](https://docs.metamask.io/embedded-wallets/sdk/react-native) |
72+
| **Flutter** | [docs.metamask.io/embedded-wallets/sdk/flutter](https://docs.metamask.io/embedded-wallets/sdk/flutter) |
73+
| **Unity** | [docs.metamask.io/embedded-wallets/sdk/unity](https://docs.metamask.io/embedded-wallets/sdk/unity) |
74+
| **Unreal Engine** | [docs.metamask.io/embedded-wallets/sdk/unreal](https://docs.metamask.io/embedded-wallets/sdk/unreal) |
75+
76+
## **4\. Connecting to Polygon**
77+
78+
After enabling **Polygon** on the dashboard, MetaMask Embedded Wallets handles all connection logic automatically.
79+
80+
### **For JS based SDKs (React, Vue, JS & Node)**
81+
82+
The wallet connects to **Polygon** using the chain configuration you set in the dashboard.
83+
No developer setup required — the provider is pre-configured and ready to use.
84+
85+
### **For Mobile & Gaming SDKs (Android, iOS, Flutter, Unity, Unreal)**
86+
87+
These SDKs expose a **user’s private key** securely. Developers can use it with their preferred blockchain library (e.g., `ethers.js`, `web3j`, or engine-native signing tools) to interact with **Polygon** RPCs.
88+
89+
**Navigate to the dedicated documentation for Polygon on MetaMask Embedded Wallets docs.**
90+
91+
## **Learn More**
92+
93+
* **MetaMask Embedded Wallets Overview:** [docs.metamask.io/embedded-wallets](https://docs.metamask.io/embedded-wallets/)
94+
95+
* **Polygon Integration Guide:** [docs.metamask.io/embedded-wallets/connect-blockchain/evm/polygon](https://docs.metamask.io/embedded-wallets/connect-blockchain/evm/polygon)
96+
97+
* **Dashboard Access:** [dashboard.web3auth.io](https://dashboard.web3auth.io/)
98+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ nav:
446446
- Wallets:
447447
- Getting started: tools/wallets/getting-started.md
448448
- WalletConnect: tools/wallets/walletconnect.md
449+
- MetaMask Embedded Wallets: tools/wallets/metamask-ew.md
449450
- Reown:
450451
- Intro: tools/wallets/reown.md
451452
- AppKit: tools/wallets/appkit.md

0 commit comments

Comments
 (0)