fix(auth): sign in against the v0.3 backend

v0.3 wallets register with the v0.3 backend, so a site built against the
legacy backend answered every v0.3 sign-in with "User not found". The
v0.3 backend resolves website sign-in by each coin's own key and adopts a
legacy identity on first proof, so it serves both generations.

The v0.3 backend has no social linking. Settings now loads linked accounts
separately and hides that section when they are unavailable, instead of
failing the whole page and taking username editing with it. The public user
count and stats may come from a separate backend via
NEXT_PUBLIC_STATS_API_URL; unset keeps today's behavior.
This commit is contained in:
jwinterm
2026-10-05 19:33:04 -04:00
parent afd1c231db
commit eaf4c90cab
3 changed files with 152 additions and 126 deletions
+4
View File
@@ -2,3 +2,7 @@
# For local development: http://localhost:8080
# For production: https://api.smirk.cash (or your backend URL)
NEXT_PUBLIC_API_URL=http://localhost:8080
# Optional: backend serving the public user count and stats, when it differs
# from the sign-in backend above. Unset means the same backend.
# NEXT_PUBLIC_STATS_API_URL=https://backend.smirk.cash