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.

有帮助吗?

解决方案

On your client object, call:

client.login('microsoftaccount').done(function (result) {
  // handle successful login
}, function (error) {
  // handle failed login
});
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top