Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .cursor/rules/product-embedded-wallets.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,28 @@ alwaysApply: false

## Product naming

- The product name is **MetaMask Embedded Wallets**.
- Use **Embedded Wallets** (capitalized) as the short form in prose.
- The SDKs are **MetaMask Embedded Wallet SDKs** (formerly Plug and Play).
- The product name is **Web3Auth by MetaMask, Embedded Wallet SDK**. It replaces the former name
"MetaMask Embedded Wallets".
- Always include the comma, including in running prose (for example, "the Web3Auth by MetaMask,
Embedded Wallet SDK"). Never write "Web3Auth by MetaMask Embedded Wallet SDK".
- Do not add "formerly Web3Auth", "previously Web3Auth", or "formerly Web3Auth Plug and Play".
- Use the full name once, on first mention in a page's body, and in page descriptions and
standalone cards. Everywhere else, including headings, page titles, and sidebar labels, use
the short form (for example, "Is the Embedded Wallet SDK a wallet?").
- Use **Embedded Wallet SDK** (singular "Wallet") as the short form, and **Embedded Wallet SDKs**
for the plural. Do not use "MetaMask Embedded Wallets", "Embedded Wallets SDK", or "MetaMask
Embedded Wallet SDK".
- For a platform SDK, use "Web3Auth by MetaMask, Embedded Wallet SDK for <platform>" (for
example, "for React" or "for iOS").
- Keep **Embedded Wallets** (not the SDK name) for:
- The service and infrastructure, which the client SDK does not run. For example, write
"Embedded Wallets issues ID tokens", not "the Embedded Wallet SDK issues ID tokens".
- The top navigation and sidebar labels, the **Embedded Wallets dashboard**, and the
`/embedded-wallets/` URLs.
- Existing page titles and descriptions that have not been migrated yet. Do not rename these in
bulk without approval from the documentation team.
The "headings, page titles, and sidebar labels" rule above applies only where the text names the
SDK.
- Package names and code identifiers still use `web3auth` (for example, `@web3auth/modal`). Do not
rename these in code samples.
- Do not describe Embedded Wallets as a "wallet." It is **embedded wallet infrastructure** that
Expand Down
2 changes: 2 additions & 0 deletions .cursor/rules/terminology.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ listed on the right unless they appear in code, URLs, or direct quotations from
| server-wallet | server wallet, Server Wallet (except as product phrase "server-wallet mode") |
| Bring your own wallet | BYOK, bring your own key, byok (except CLI flag `--wallet byok`) |
| `mm` (CLI binary) | MM, Mm (except at sentence start) |
| Web3Auth by MetaMask, Embedded Wallet SDK (product name) | MetaMask Embedded Wallets, MetaMask Embedded Wallet SDK, Web3Auth PnP SDK, Web3Auth by MetaMask Embedded Wallet SDK (no comma) |
| Embedded Wallet SDK (short form) | Embedded Wallets SDK |

## Standards and specifications

Expand Down
26 changes: 14 additions & 12 deletions embedded-wallets/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: What are Embedded Wallets?
image: 'img/metamaskog.jpg'
sidebar_label: About
description: 'What are MetaMask Embedded Wallets? Pluggable wallet infrastructure for web3. OAuth logins, multiple platforms, non-custodial wallets.'
description: 'What is the Web3Auth by MetaMask, Embedded Wallet SDK? Pluggable wallet infrastructure for web3. OAuth logins, multiple platforms, non-custodial wallets.'
---

import Head from '@docusaurus/Head'
Expand All @@ -20,7 +20,7 @@ import Head from '@docusaurus/Head'
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="MetaMask Embedded Wallets" />
<meta property="og:image:alt" content="Web3Auth by MetaMask, Embedded Wallet SDK" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@MetaMask" />
<meta name="twitter:creator" content="@MetaMask" />
Expand All @@ -29,11 +29,13 @@ import Head from '@docusaurus/Head'
<meta name="author" content="MetaMask" />
</Head>

MetaMask Embedded Wallets (formerly Web3Auth) provides a pluggable embedded wallet infrastructure to
The Web3Auth by MetaMask, Embedded Wallet SDK provides a pluggable embedded wallet infrastructure to
simplify web3 wallet integration and user onboarding. It supports OAuth-based logins and multiple
platforms, allowing your users to access web3 applications through familiar authentication methods.

MetaMask Embedded Wallets reduces traditional wallet management overhead by removing the need
The SDK is available for [web, mobile, gaming, and backend platforms](/embedded-wallets/sdk/).

The Embedded Wallet SDK reduces traditional wallet management overhead by removing the need
to manage private keys and seed phrases directly.

<p style={{ margin: '1.25rem 0' }}>
Expand Down Expand Up @@ -61,7 +63,7 @@ Help users get started quickly with sign-in methods they already use:

- Sign in with Google, Twitter, GitHub, and other popular social accounts.
- Sign in with email, SMS, and authenticator apps without passwords.
- Bring your own auth system while using MetaMask Embedded Wallets infrastructure.
- Bring your own auth system while using the Embedded Wallet SDK infrastructure.

### Security

Expand All @@ -73,7 +75,7 @@ Protection for your users' digital assets:

### Developer experience

Integrate MetaMask Embedded Wallets into your app with minimal setup:
Integrate the Embedded Wallet SDK into your app with minimal setup:

- Use a drop-in solution that works with your existing auth system.
- Avoid complex migrations or infrastructure changes.
Expand All @@ -89,23 +91,23 @@ Provide a low-friction path to web3:
- Let users own and control their wallets.
- Support account recovery flows.

MetaMask Embedded Wallets provides wallet infrastructure for dapps and blockchain wallets. This
The Embedded Wallet SDK provides wallet infrastructure for dapps and blockchain wallets. This
documentation explains how it works, including how it generates cryptographic key providers for
each user and application.

## How do Embedded Wallets work?

See **[Architecture](./architecture.mdx)** for the high-level system design, SDK and integration diagram, and wallet management infrastructure.

## Is MetaMask Embedded Wallets a wallet?
## Is the Embedded Wallet SDK a wallet?

MetaMask Embedded Wallets is not a wallet, but rather a wallet infrastructure that can be integrated into any application. It provides customizable authentication flows for dapps and blockchain wallets, solving user onboarding and key management challenges.
The Embedded Wallet SDK is not a wallet, but rather a wallet infrastructure that can be integrated into any application. It provides customizable authentication flows for dapps and blockchain wallets, solving user onboarding and key management challenges.

Unlike traditional wallets that can limit user experience, MetaMask Embedded Wallets enables developers to create tailored flows without requiring users to understand complex blockchain concepts. It provides a cryptographic key provider that can be used to build custom wallets or integrate with existing ones through Web3Auth's external wallet adapters.
Unlike traditional wallets that can limit user experience, the Embedded Wallet SDK enables developers to create tailored flows without requiring users to understand complex blockchain concepts. It provides a cryptographic key provider that can be used to build custom wallets or integrate with existing ones through Web3Auth's external wallet adapters.

## Is MetaMask Embedded Wallets scalable?
## Is the Embedded Wallet SDK scalable?

The MetaMask Embedded Wallets infrastructure is built to handle millions of users. Our architecture provides:
The Embedded Wallet SDK infrastructure is built to handle millions of users. Our architecture provides:

- Global availability across multiple regions with consistent low-latency performance worldwide
- Automatic horizontal scaling that adjusts capacity based on demand, eliminating bottlenecks and ensuring uninterrupted service
Expand Down
6 changes: 3 additions & 3 deletions embedded-wallets/architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: Architecture
sidebar_label: Architecture
description: 'How MetaMask Embedded Wallets fit together: SDK layout, integrations, and wallet management infrastructure.'
description: 'How the Web3Auth by MetaMask, Embedded Wallet SDK fits together: SDK layout, integrations, and wallet management infrastructure.'
---

import PnPCoreKitFlowLight from '@site/static/img/embedded-wallets/flow-diagrams/pnp-core-kit-flow-light.png'
import PnPCoreKitFlowDark from '@site/static/img/embedded-wallets/flow-diagrams/pnp-core-kit-flow-dark.png'

MetaMask Embedded Wallets includes front-end SDKs that run in your app and coordinate OAuth sign-in
The Web3Auth by MetaMask, Embedded Wallet SDK includes front-end SDKs that run in your app and coordinate OAuth sign-in
with the Embedded Wallets network. You use these SDKs to authenticate a user, retrieve the key
material required for that user, and create a client that can sign requests on the user's behalf.

:::note[Rebrand]

The SDKs are now branded as MetaMask Embedded Wallet SDKs (formerly Web3Auth Plug and Play SDKs).
The SDKs are now branded as Web3Auth by MetaMask, Embedded Wallet SDKs.
Package names and APIs remain Web3Auth (for example, Web3Auth React SDK), and code snippets may reference `web3auth` identifiers.

:::
Expand Down
6 changes: 3 additions & 3 deletions embedded-wallets/authentication/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ description: 'Authentication | Embedded Wallets'

import Tiles from '@theme/Tiles'

**Embedded Wallets** (formerly Web3Auth) offers an authentication system designed to connect Web2 and web3 identity, giving you tools to implement secure, flexible, and user-friendly onboarding flows. By offering fine-grained control over login experiences and wallet integrations, Embedded Wallets helps enhance user conversion while enabling access to blockchain-based functionality.
The **Web3Auth by MetaMask, Embedded Wallet SDK** offers an authentication system designed to connect Web2 and web3 identity, giving you tools to implement secure, flexible, and user-friendly onboarding flows. By offering fine-grained control over login experiences and wallet integrations, the Embedded Wallet SDK helps enhance user conversion while enabling access to blockchain-based functionality.

Using the Embedded Wallets SDKs, applications can authenticate users through a variety of mechanisms, supporting both traditional (Web2) and decentralized (web3) identity paradigms.
Using the Embedded Wallet SDKs, applications can authenticate users through a variety of mechanisms, supporting both traditional (Web2) and decentralized (web3) identity paradigms.

::::note

The SDKs are now branded as MetaMask Embedded Wallet SDKs (formerly Web3Auth Plug and Play SDKs). Package names and APIs remain Web3Auth (for example, Web3Auth React SDK), and code snippets may reference `web3auth` identifiers.
The SDKs are now branded as Web3Auth by MetaMask, Embedded Wallet SDKs. Package names and APIs remain Web3Auth (for example, Web3Auth React SDK), and code snippets may reference `web3auth` identifiers.

::::

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Email passwordless with Embedded Wallets
sidebar_label: Email passwordless
description: Configure default or custom email OTP sign-in with MetaMask Embedded Wallets.
description: Configure default or custom email OTP sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import EmailPasswordlessAddConnection from '@site/static/img/embedded-wallets/dev-dashboard/email-passwordless-add-connection.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/basic-logins/sms-otp.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: SMS OTP with Embedded Wallets
sidebar_label: SMS OTP
description: Configure default or custom SMS OTP sign-in with MetaMask Embedded Wallets.
description: Configure default or custom SMS OTP sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SMSOTPAddConnection from '@site/static/img/embedded-wallets/dev-dashboard/sms-otp-add-connection.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/id-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ When making a backend request from the frontend, the client must include this ID

## ID token format

Embedded Wallets (previously Web3Auth) issues tokens as ES256-signed JWTs containing various identity claims about the user.
Embedded Wallets issues tokens as ES256-signed JWTs containing various identity claims about the user.

A sample decoded token is shown below:

Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/apple.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Apple sign-in with Embedded Wallets
sidebar_label: Apple
description: Configure default or custom Apple sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Apple sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Discord sign-in with Embedded Wallets
sidebar_label: Discord
description: Configure default or custom Discord sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Discord sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import DiscordConnection from '@site/static/img/embedded-wallets/dev-dashboard/discord-connection.png'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Facebook sign-in with Embedded Wallets
sidebar_label: Facebook
description: Configure default or custom Facebook sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Facebook sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import FacebookConnection from '@site/static/img/embedded-wallets/dev-dashboard/facebook-connection.png'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Farcaster sign-in with Embedded Wallets
sidebar_label: Farcaster
description: Configure default Farcaster sign-in with MetaMask Embedded Wallets.
description: Configure default Farcaster sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/github.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: GitHub sign-in with Embedded Wallets
sidebar_label: GitHub
description: Configure default or custom GitHub sign-in with MetaMask Embedded Wallets.
description: Configure default or custom GitHub sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/google.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Google sign-in with Embedded Wallets
sidebar_label: Google
description: Configure default or custom Google sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Google sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import JwtLoginGoogle from '../../sdk/react/advanced/_custom-authentication-snippets/_jwt_login_google_one_tap.mdx'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/kakao.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Kakao sign-in with Embedded Wallets
sidebar_label: Kakao
description: Configure default or custom Kakao sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Kakao sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/line.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LINE sign-in with Embedded Wallets
sidebar_label: LINE
description: Configure default or custom LINE sign-in with MetaMask Embedded Wallets.
description: Configure default or custom LINE sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LinkedIn sign-in with Embedded Wallets
sidebar_label: LinkedIn
description: Configure default or custom LinkedIn sign-in with MetaMask Embedded Wallets.
description: Configure default or custom LinkedIn sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/reddit.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Reddit sign-in with Embedded Wallets
sidebar_label: Reddit
description: Configure default or custom Reddit sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Reddit sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Telegram sign-in with Embedded Wallets
sidebar_label: Telegram
description: Configure default or custom Telegram sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Telegram sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/twitch.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Twitch sign-in with Embedded Wallets
sidebar_label: Twitch
description: Configure default or custom Twitch sign-in with MetaMask Embedded Wallets.
description: Configure default or custom Twitch sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import TwitchConnection from '@site/static/img/embedded-wallets/dev-dashboard/twitch-connection.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/wechat.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: WeChat sign-in with Embedded Wallets
sidebar_label: WeChat
description: Configure default or custom WeChat sign-in with MetaMask Embedded Wallets.
description: Configure default or custom WeChat sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
2 changes: 1 addition & 1 deletion embedded-wallets/authentication/social-logins/x.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: X sign-in with Embedded Wallets
sidebar_label: X
description: Configure default or custom X (Twitter) sign-in with MetaMask Embedded Wallets.
description: Configure default or custom X (Twitter) sign-in with the Web3Auth by MetaMask, Embedded Wallet SDK.
---

import SocialConnections from '@site/static/img/embedded-wallets/dev-dashboard/authentication-social-connections.png'
Expand Down
8 changes: 4 additions & 4 deletions embedded-wallets/build-with-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Build with AI
sidebar_label: Build with AI
toc_max_heading_level: 2
description: 'Set up the MetaMask Embedded Wallets skill and MCP server in Cursor, Claude, Codex, Antigravity, and other AI coding assistants.'
description: 'Set up the Web3Auth by MetaMask, Embedded Wallet SDK skill and MCP server in Cursor, Claude, Codex, Antigravity, and other AI coding assistants.'
image: 'img/metamaskog.jpg'
keywords:
[ai, cursor, claude, codex, antigravity, mcp, llm, coding assistant, embedded wallets, web3auth]
Expand Down Expand Up @@ -58,7 +58,7 @@ or click the button below:
rel="noopener noreferrer">
<img
src="https://cursor.com/deeplink/mcp-install-dark.svg"
alt="Add MetaMask Embedded Wallets MCP to Cursor"
alt="Add the Web3Auth by MetaMask, Embedded Wallet SDK MCP to Cursor"
height="32"
/>
</a>
Expand Down Expand Up @@ -146,14 +146,14 @@ For stdio-only agents, bridge the HTTP endpoint with [mcp-remote](https://github

Ask your assistant:

> Search MetaMask Embedded Wallets docs for React quick start
> Search the Embedded Wallet SDK docs for React quick start

If MCP is connected, it fetches live docs and examples.
The skill keeps SDK choice and wallet-address pitfalls in check.

Good follow-up prompts:

- _"Add MetaMask Embedded Wallets to your React app with Google sign-in."_
- _"Add the Embedded Wallet SDK to your React app with Google sign-in."_
- _"Set up wallets with social sign-in in your Next.js app using Wagmi."_
- _"Integrate Embedded Wallets in your Flutter app."_
- _"Why do users get different wallet addresses after the sign-in method changes?"_
Expand Down
Loading
Loading