Logs in by using a specific provider.

SocialLogin.login(
    "facebook",
    (result) => {
        console.log("provider: " + result.code);
        console.log("code: " + result.code);
        console.log("error: " + result.error);
        console.log("userToken: " + result.userToken);
        console.log("displayName: " + result.displayName);
        console.log("photo: " + result.photo);
        console.log("authToken: " + result.authToken);
    }
);

Valid provider values

Value
facebook
google