Skip to content

Remove legacy web-mode residue: target the adapter, not the auth server #2

Description

@Bccorb

Problem

The React SDK now reaches the auth server through the adopter's backend (the @seamless-auth/express adapter) over cookies. The discontinued "web mode" (browser → auth server directly) left residual config that points the app straight at the auth server.

  • .envVITE_API_URL=http://localhost:5312 (the auth server — legacy/incorrect)
  • .env.exampleVITE_API_URL=http://localhost:3000/ (the adapter — correct)

The React SDK calls ${apiHost}/auth/<endpoint>, and /auth is the adapter's mount — so the app must target the adapter (:3000), as the example already shows.

Fix

  • Update the committed .env to match .env.example (point at the adapter, :3000).
  • Audit other direct-to-auth-server references (src/lib/runtimeConfig.ts, README/docs) and remove any remaining web-mode assumptions.

Context

Found while building the seamless verify conformance harness; part of cleaning up legacy web-mode residue across the ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions