문제

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