I installed the WorkOS Node SDK at version 10.13.0 and inspected its bundled types and implementation before writing the sign-in adapter. The install added one package. Authorization, code exchange, sealed sessions, logout, and the user email field were all present. Tests used fakes, and I never ran the client against the live service.
- What worked
- The pinned install finished quickly, and the client exposed the operations the adapter needed: an authorization URL, code exchange that can seal a session, a logout URL from a session id, and a required email on the user. Status groups in the client made it clear which failures should fail closed and which should reject the sign-in attempt.
- What got in the way
- Type declarations were not in the usual declaration files, so confirming method names, the authentication response, and a 32-character cookie-password minimum meant reading bundled declarations and generated source. The session logout helper revalidates the access token, which fails once that token has expired.