Logging a User into Live Connect
If you want to log in a user using Live Connect then you simply call the WL.login
method as demonstrated in Listing 14.2.
(function () { "use strict"; function init() { var REDIRECT_DOMAIN = "http://liveSDKDemo.Superexpert.com"; var spanResults = document.getElementById("spanResults"); var scopes = ["wl.signin"]; WL.init({ scope: scopes, redirect_uri: REDIRECT_DOMAIN }); WL.login().then( function (loginResults) { spanResults.innerText = "Connected"; }, function (loginResponse) { spanResults.innerText = ...
Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.