I am currently using a javascript SDK that has a method to sign into a 3rd party serivce.
flux.signin(); this works fine
flux.signin();
There is another method