I'm trying to sign in using the Skype web SDK. I took code for signing in from some tutorials. Here is the code:
$('#signin').click(function () {
$('#signin').hide();
log('Signing in...');
//debugger;
// and invoke its asynchronous "signIn" method
client.signInManager.signIn({
username: 'ridaiftikhar@hotmail.com',
password: 'sdfafa2'
}).then(function () {
//log in worked!
alert('Signed in');
$('#loginbox').hide();
$('#chatfunctions').show();
}, function (error) {
//Something went wrong.
alert(error);
});
});
My problem is that the first function in then
is not working. If I give an illegal username it will show me the error message, but it never shows the "Signed In" alert even when I provide the correct credentials.
From your code snippet I see you are using a Hotmail account to sign in. The sign-in code you are trying to execute is that of the Skype Web SDK which targets Skype for Business (not Skype consumer). Please use a valid Skype for Business account in order to sign in. One other thing to note: If you are using username+password based auth then your organization that has a Skype for Business deployment must support username+password based auth. If not, sign-in will fail.