Skip to content

Update Embedded Wallets Android SDK docs for v11 - #3080

Closed
yashovardhan wants to merge 2 commits into
mainfrom
claude/android-sdk-docs-update-c1aa1b
Closed

yashovardhan wants to merge 2 commits into
mainfrom
claude/android-sdk-docs-update-c1aa1b

Conversation

@yashovardhan

Copy link
Copy Markdown
Member

Description

Updates the Embedded Wallets Android SDK documentation to match web3auth-android-sdk 11.0.1 (Auth Service v11, Wallet Services v6) and the Android examples. Every API detail was checked against the SDK source at the 11.0.1 tag.

New and retargeted content

  • Migration guide now targets v11, with a "v11 changes" section, an updated AI prompt, and a v11 column in the summary table.
  • New usage pages: session-tokens (getAccessToken(), getIdentityToken()) and refresh-session (refreshSession()), both added to the sidebar.
  • getUserInfoAsync() is documented on the get-user-info page.
  • connectTo reference adds LoginParams.recordId and loginSource.

Corrections

  • Dependency bumped to 11.0.1; minSdk corrected to 26 in the migration guide and quickstart (they said 24).
  • initialize(): it completes exceptionally when there's no saved session (No user found, please login again!). The docs said getPrivateKey() would return "" in that case. Also fixed in the tutorial ViewModel, which would have crashed.
  • getPrivateKey(): it throws after logout(). getUserInfo() returns null after logout().
  • MFALevel.DEFAULT: removed from the MFA and connectTo pages; it no longer exists in v11.
  • enableMFA / manageMFA: examples no longer pass idToken, which the SDK rejects with Enabling MFA is not allowed for this user.. Both are now documented as unavailable for SFA sessions.
  • Custom authentication:
    • Required clientId and authConnectionId added to the examples.
    • EmailFlowType values corrected to lowercase code / link.
    • Swapped authConnectionId / groupedAuthConnectionId fixed in the grouped example.
    • jwtParameters and login_hint documented.
  • Options:
    • Web3AuthOptions interface updated.
    • sessionTime and confirmationStrategy now default to null and are filled from the dashboard.
    • Added enableKeyExport, authBuildEnv, and WhiteLabelData.tncLink / privacyPolicy.
  • SFA limitations documented:
    • Blocking network calls, so SFA connectTo examples now run off the main thread.
    • Fails with User has already enabled MFA for users who have MFA.
    • No access or identity tokens.
  • Solana page: fixed the "1 day" session default and the getEd25519PrivateKey() call made before initialize().
  • Firebase guide: the Android example now runs off the main thread.

Preview

Run npm start, then see /embedded-wallets/sdk/android/ and /embedded-wallets/migration-guides/android/. npm run build passes, with broken links and anchors set to fail.

Items for reviewers

  • Please confirm: for users who already have MFA, the SFA warning tells them to log in through the browser flow with ExtraLoginOptions(id_token = …) and without idToken. This follows the existing JWT pattern, but no released example confirms it.
  • SDK issues found (not docs changes):
    • Dapp share is saved under the key "<authConnectionId> | <userId>" but read back under authConnectionId, so it never auto-reloads.
    • SFA reads the user ID only from the JWT's user_id claim.
    • The SDK README's v11 migration references a WhiteLabelData.consentRequired field that doesn't exist, and lists minSdk 24.

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

Align the Android SDK docs with web3auth-android-sdk 11.0.1.

- Bump the dependency to 11.0.1 and minSdk to 26.
- Retarget the migration guide to v11 (MFALevel.DEFAULT removal, v11/v6
  service URLs, initialize() session restore, sessionTime and
  WalletServicesConfig defaults, new session APIs).
- Add usage pages for getAccessToken/getIdentityToken and refreshSession,
  and document getUserInfoAsync.
- Fix initialize(), getPrivateKey(), and logout() session behavior.
- Fix enableMFA/manageMFA guidance (no idToken; not available for SFA).
- Fix custom authentication examples (required clientId and
  authConnectionId, EmailFlowType values, swapped grouped connection IDs,
  jwtParameters).
- Document SFA limitations and run SFA connectTo off the main thread.
- Update Web3AuthOptions, WhiteLabelData, and WalletServicesConfig fields.
- Fix the Solana, Firebase, tutorial, and quickstart Android content.
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
metamask-docs Ready Ready Preview Nov 9, 2026 4:51pm UTC

Request Review

@yashovardhan

Copy link
Copy Markdown
Member Author

Superseded by #3086, which combines this branch with the other Embedded Wallets SDK docs updates and the rebrand into one PR for review. No further changes should land here.

This branch was successfully deployed

1 active deployment
Preview — 88a4afe6 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant