probably a good moment to rename to sso.js so that the snippets that people include in their apps is intuitive.