Question

I started a Universal app with WinJS 2.0 for a Windows (and Phone) 8.1 project, and went through the tutorial to register my app for authentication and configure Mobile Services with the Client ID and Client secret. But now how do I actually handle a login with a Microsoft account on my application? I can't find any examples of how to do this anywhere...am I missing something?

I know Mobile Services is working on my application because I am able to do an insertion into a table with it.

Was it helpful?

Solution

On your client object, call:

client.login('microsoftaccount').done(function (result) {
  // handle successful login
}, function (error) {
  // handle failed login
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top