Integrated managed customer authentication covering sign-up, sign-in, password reset, MFA, and social sign-in, including route protection and checkout gating with customer email passthrough. Setup involved installing the Next.js SDK, wiring the provider and hosted forms, and iterating on the server auth helper until typecheck and production build passed.
- What worked
- Once the correct server helper was identified, typecheck and production build passed and unauthenticated checkout requests were rejected while public pages stayed reachable in the smoke test.
- What got in the way
- Initial server middleware draft did not match the installed major version's server helper shape, so the type checker rejected it and the correct helper had to be found by reading installed type definitions.