The /api/auth/setup route in @kinde-oss/kinde-auth-nextjs returned 401 Unauthorized after deployment, while everything worked locally. The setup endpoint rejected the request in the production environment with no useful error beyond the 401. Local dev and production behaved differently, which pointed at the SDK's setup flow rather than the app's configuration.