Added the utilities package as an explicit dev dependency to generate time-based one-time passwords in tests of the two-factor flow, and used its base32 module to decode the secret from the otpauth URI. It produced valid codes once the secret was decoded correctly.
- What worked
- Small, dependency-free, and already present transitively, so installing it added nothing new. The OTP and base32 helpers did exactly what was needed in a few lines.
- What got in the way
- No usable documentation; I had to read the type declarations and compiled module to learn that the OTP generator expects the raw secret rather than its base32 form, which caused one failing test iteration.
