Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4f71ac5
Rebrand Embedded Wallets to Web3Auth by MetaMask, Embedded Wallet SDK
yashovardhan Nov 5, 2026
ea83374
Update Embedded Wallets iOS SDK docs for v13
yashovardhan Nov 5, 2026
6533ead
Audit Embedded Wallets Web SDK docs against @web3auth/modal v11.4.3
yashovardhan Nov 5, 2026
af9f9e1
Update Flutter SDK docs for web3auth_flutter v8
yashovardhan Nov 5, 2026
195cf25
Update Embedded Wallets Android SDK docs for v11
yashovardhan Nov 5, 2026
1bb8cca
Update Embedded Wallets React Native docs for SDK v10
yashovardhan Nov 5, 2026
88a4afe
Clarify Android session time defaults to 30 days
yashovardhan Nov 9, 2026
2561271
Fix iOS v13 docs gaps found in review
yashovardhan Nov 9, 2026
ff60d01
Fix Flutter v8 docs against native SDK behavior
yashovardhan Nov 9, 2026
05c3154
Fix remaining v11.4.3 inaccuracies found in review
yashovardhan Nov 9, 2026
6d23f49
Address review feedback on React Native v10 docs
yashovardhan Nov 9, 2026
e69be00
Address rebrand review: service wording, snapshots, naming slips
yashovardhan Nov 9, 2026
77be3e3
Merge remote-tracking branch 'origin/claude/ios-sdk-docs-update-fcb56…
yashovardhan Nov 10, 2026
b7570c8
Merge remote-tracking branch 'origin/claude/android-sdk-docs-update-c…
yashovardhan Nov 10, 2026
783f6c6
Merge remote-tracking branch 'origin/claude/embedded-wallet-docs-audi…
yashovardhan Nov 10, 2026
7d1523d
Merge remote-tracking branch 'origin/claude/flutter-sdk-docs-update-a…
yashovardhan Nov 10, 2026
4f7815b
Merge remote-tracking branch 'origin/claude/embedded-wallet-rn-docs-e…
yashovardhan Nov 10, 2026
c762ace
Merge remote-tracking branch 'origin/claude/metamask-embedded-wallet-…
yashovardhan Nov 10, 2026
bf0e761
Fix sessionTime default and max in auth adapter settings snippet
yashovardhan Nov 10, 2026
89bb138
Fix Embedded Wallet SDK migration guides against SDK source
yashovardhan Nov 10, 2026
6b9ba7e
Align React Native docs with React Native 0.84 examples
yashovardhan Nov 11, 2026
2322567
Update Android, iOS, and Flutter SDK docs to current SDK behavior
yashovardhan Nov 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
37 changes: 16 additions & 21 deletions embedded-wallets/authentication/custom-connections/auth0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ Future<void> initPlatformState() async {
authConnectionConfig: authConnectionConfig,
));

await Web3AuthFlutter.initialize();
try {
// Restores the session if one exists. Throws when no active session is present.
await Web3AuthFlutter.initialize();
} catch (e) {
log(e.toString());
}
}
```

Expand Down Expand Up @@ -228,30 +233,20 @@ Read more about initializing the Flutter SDK [here](/embedded-wallets/sdk/flutte
### React Native

```tsx
const web3auth = new Web3Auth(WebBrowser, SecureStore, {
clientId,
network: OPENLOGIN_NETWORK.SAPPHIRE_MAINNET, // SAPPHIRE_MAINNET or SAPPHIRE_DEVNET
loginConfig: {
// focus-start
jwt: {
verifier: 'YOUR_AUTH0_VERIFIER_NAME', // Please create a verifier on the developer dashboard and pass the name here
typeOfLogin: 'jwt',
clientId: 'AUTH0_CLIENT_ID_123ABcdefg4HiJKlMno4P5QR6stUvWXY', // use your app client id you got from auth0
},
// focus-end
},
})
```
import { AUTH_CONNECTION, useWeb3AuthConnect } from '@web3auth/react-native-sdk'

```tsx
const web3authResponse = await web3auth.login({
redirectUrl: resolvedRedirectUrl,
const { connectTo } = useWeb3AuthConnect()

await connectTo({
authConnection: AUTH_CONNECTION.CUSTOM,
// focus-start
loginProvider: 'jwt',
authConnectionId: 'YOUR_AUTH0_CONNECTION_ID', // Connection ID from the dashboard
extraLoginOptions: {
domain: 'https://YOUR-AUTH0-DOMAIN', // Please append "https://" before your domain
verifierIdField: 'sub', // For SMS & Email Passwordless, use "name" as verifierIdField
domain: 'https://YOUR-AUTH0-DOMAIN', // Include "https://"
verifierIdField: 'sub', // For SMS and email passwordless, use "name"
},
// focus-end
})
```

Read more about [custom authentication in the React Native SDK](/embedded-wallets/sdk/react-native/advanced/custom-authentication).
102 changes: 42 additions & 60 deletions embedded-wallets/authentication/custom-connections/firebase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ web3Auth.setResultUrl(intent?.data)

Once initialized, you can use the `web3Auth.connectTo(LoginParams(...))` function to authenticate the user when they click the sign-in button.

Passing `idToken` uses SFA sign-in, which makes blocking network calls. Call `connectTo` from a background thread, as shown below.

```kotlin
private val executor = Executors.newSingleThreadExecutor()

private fun signIn() {
// focus-start
auth = Firebase.auth
Expand All @@ -159,22 +163,20 @@ private fun signIn() {
val idToken = result.token

Log.d(TAG, "GetTokenResult result = $idToken")
// focus-start
val loginCompletableFuture: CompletableFuture<Web3AuthResponse> = web3Auth.connectTo(
LoginParams(
authConnection = AuthConnection.CUSTOM,
authConnectionId = "web3auth-firebase-examples",
idToken = idToken
)
)
// focus-end

loginCompletableFuture.whenComplete { loginResponse, error ->
if (error == null) {
println(loginResponse)
reRender(loginResponse)
} else {
Log.d("MainActivity_Web3Auth", error.message ?: "Something went wrong" )
executor.execute {
try {
// focus-start
val loginResponse: Web3AuthResponse = web3Auth.connectTo(
LoginParams(
authConnection = AuthConnection.CUSTOM,
authConnectionId = "web3auth-firebase-examples",
idToken = idToken
)
).get()
// focus-end
runOnUiThread { reRender(loginResponse) }
} catch (e: Exception) {
Log.d("MainActivity_Web3Auth", e.message ?: "Something went wrong")
}
}
}
Expand Down Expand Up @@ -234,7 +236,12 @@ Future<void> initPlatformState() async {
);
// focus-end

await Web3AuthFlutter.initialize();
try {
// Restores the session if one exists. Throws when no active session is present.
await Web3AuthFlutter.initialize();
} catch (e) {
log(e.toString());
}
}
```

Expand Down Expand Up @@ -278,55 +285,30 @@ Read more about initializing the Flutter SDK [here](/embedded-wallets/sdk/flutte

### React Native

```tsx
const web3auth = new Web3Auth(WebBrowser, SecureStore, {
clientId,
network: OPENLOGIN_NETWORK.SAPPHIRE_MAINNET, // SAPPHIRE_MAINNET or SAPPHIRE_DEVNET
loginConfig: {
// focus-start
jwt: {
verifier: 'YOUR_JWT_VERIFIER_NAME', // Please create a verifier on the developer dashboard and pass the name here
typeOfLogin: 'jwt',
},
// focus-end
},
})
```

```tsx
import auth from '@react-native-firebase/auth'
import { GoogleSignin } from '@react-native-google-signin/google-signin'
import { AUTH_CONNECTION, useWeb3AuthConnect } from '@web3auth/react-native-sdk'

async function signInWithFirebase() {
try {
GoogleSignin.configure({
webClientId: '461819774167-5iv443bdf5a6pnr2drt4tubaph270obl.apps.googleusercontent.com',
})
// Check if your device supports Google Play
await GoogleSignin.hasPlayServices({ showPlayServicesUpdateDialog: true })
// Get the user's ID token
const { idToken } = await GoogleSignin.signIn()
// Create a Google credential with the token
const googleCredential = auth.GoogleAuthProvider.credential(idToken)
const { connectTo } = useWeb3AuthConnect()

// Sign-in the user with the credential
const res = await auth().signInWithCredential(googleCredential)
async function signInWithFirebase() {
GoogleSignin.configure({ webClientId: 'YOUR_GOOGLE_WEB_CLIENT_ID' })
await GoogleSignin.hasPlayServices({ showPlayServicesUpdateDialog: true })
const { data } = await GoogleSignin.signIn()

const idToken = await res.user.getIdToken(true)
const googleCredential = auth.GoogleAuthProvider.credential(data?.idToken ?? null)
const { user } = await auth().signInWithCredential(googleCredential)
const idToken = await user.getIdToken(true)

// focus-start
await web3auth.login({
redirectUrl: resolvedRedirectUrl,
mfaLevel: 'default', // Pass on the MFA level of your choice: default, optional, mandatory, none
loginProvider: 'jwt',
extraLoginOptions: {
id_token: idToken,
verifierIdField: 'sub', // same as your JWT Verifier ID on the dashboard
},
})
// focus-end
} catch (error) {
console.error(error)
}
// focus-start
await connectTo({
authConnection: AUTH_CONNECTION.CUSTOM,
authConnectionId: 'YOUR_FIREBASE_CONNECTION_ID', // Connection ID from the dashboard
idToken, // no browser opens when you pass an idToken
})
// focus-end
}
```

Read more about [custom authentication in the React Native SDK](/embedded-wallets/sdk/react-native/advanced/custom-authentication#bring-your-own-jwt-idtoken).
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
Loading
Loading