NHS Login Integration for Pharmacy2U
Delivered NHS Login integration for Pharmacy2U, enabling secure registration, sign-in, session management and account routing across onboarding, dashboard and checkout journeys.





The feature allowed users to register and sign in to the Pharmacy2U platform using their existing NHS Login credentials. This included building the new user journeys, triggering the necessary user auth operations and handling server responses.
Additional features included session expiry behaviour so users were logged out immediately when their session expired, meeting NHS-imposed session management requirements.
The epic extended beyond the core authentication journey into surrounding platform areas. In the account dashboard, NHS-authenticated users could not follow the normal “change login details” path and instead needed to be redirected to the NHS Login portal. In checkout, I integrated logic to check a user’s email address and guide them to authenticate using the sign-in method associated with their account.
Technically, this involved coordinating an external identity provider with Pharmacy2U’s own identity service, backend APIs and front-end application flows. I implemented redirect and callback handling, response-driven UI states, session management behaviour, and conditional rendering across different parts of the platform. A key challenge was making the experience behave correctly across multiple edge cases while aligning with both product requirements and NHS acceptance criteria.
The result was a more secure, lower-friction and higher trust user experience for inviting and onboarding new customers onto the Pharmacy2U platform.
React
Next.js
TypeScript
Tailwind
HTML
CSS