Eventually the single sign on implementation will be rewritten
in a nice modular way here.

Currently, the implementation is mostly in packages/hub/auth.ts
