There is a method inside of SSO.js that does this for us