Skip to main content
Before migrating, align your existing data model to Stytch’s Consumer object. This will help you plan which identifiers, auth factors, and metadata to migrate and how to map your internal IDs.

Key data to map

  • Unique identifiers: Decide whether email, phone, or both will identify users, and verify uniqueness.
  • Auth factors: Inventory which factors each user has (passwords, email, phone, passkeys, etc.).
  • Metadata: Identify which attributes should move into trusted_metadata or untrusted_metadata.
  • External IDs: Preserve your internal user ID by mapping it to Stytch’s external_id.
  • Session data: Plan how you’ll validate sessions post-migration and whether you’ll use Session Tokens or JWTs.
  • Redirects and domains: Ensure redirect URLs and authorized domains are configured in the Dashboard.
  1. Start with the Consumer data model to understand the Stytch User object.
  2. Map your internal user identifier to External IDs.
  3. Decide which user attributes are authoritative in your system versus Stytch, then align metadata accordingly.
  4. Plan for changes in auth factors (for example, if you’re adding magic links or passkeys post-migration).

Questions to answer

  • Where is authentication handled today (frontend, backend, or both)?
  • Which auth methods do users rely on (passwords, email, phone, or multiple)?
  • How many factors does a user typically have?
  • Do you need to support a web app, mobile app, or both?
For a broader migration checklist, see Migration overview.