wulf-pulse/app/auth
lorentz bee35e0260 fix(auth): reduce mobile sign-in friction (PWA + auto-redirect)
Three independent changes that together stop the mobile re-auth churn:

- app/layout.tsx: add appleWebApp metadata so iOS "Add to Home Screen"
  launches Pulse in true standalone mode (own cookie jar, persists
  across Safari memory pressure)
- components/auth/sign-in-form.tsx: when /auth/sign-in mounts and
  ?callbackUrl starts with /mobile, auto-call authClient.signIn.social
  for Microsoft. With an active M365 browser session this redirect is
  silent — the user lands on /mobile/* with no tap.
- app/auth/sign-in/page.tsx: wrap SignInForm in <Suspense> (required
  by Next.js 16 because SignInForm now uses useSearchParams)

Pairs with operator-side env bump SESSION_TIMEOUT_SECONDS=2592000
(30 days, .env files are gitignored — applied on the running container
via docker compose up -d --force-recreate app).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 07:05:52 -04:00
..
2fa feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
setup feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
sign-in fix(auth): reduce mobile sign-in friction (PWA + auto-redirect) 2026-05-07 07:05:52 -04:00
verify feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00
layout.tsx feat: add authentication, user management, and admin features 2026-01-31 12:43:14 -05:00