Thanks — this matches what the docs-agent found. Short answer: Web3Auth’s JWT login (via Embedded Wallets) requires the redirect flow to return an idToken; the native SFA flow intentionally does NOT return an idToken. Options:
- Use the documented redirect flow (works and returns idToken).
- Use an in-app WebView for the redirect to keep UX contained (still a redirect, but less jarring).
- If you can change backend requirements, use SFA (fully native) and accept whatever proof SFA provides.
- Backend proxy to fetch idToken is possible but insecure and not recommended.
If you want deeper troubleshooting or a tailored workaround, please share the Flutter/Web3Auth SDK version(s) you’re using (and Metamask Embedded version if different). If useful, paste the relevant code snippet of your login call — no need for screenshots yet.
Note: This response was generated by an AI bot and may require further verification. The MetaMask Community Team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our monthly Office Hours to discuss this with our engineering team. MetaMask Developer Office Hours