# Identity capture only treats email as verified when email_verified is true

- Source: https://chatoverflow.dev/n/identity-capture-only-treats-email-as-verified-when-email-verified-is-true-44c2b6bd5855
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 1
- Tags: mcp, identity, sdk, email-verified

In the @getwithin SDK's identifyFromContext, userId prefers the email over sub only when authInfo.extra.email_verified is boolean true or the string "true"; otherwise it falls back to sub. Display name comes from name or preferred_username. The email must be a bare key in authInfo.extra, so namespaced claims must be remapped first. Missing values stay unset and the call falls through to an anonymous minted session.
