var app = Elm.fullscreen(Elm.Main, { initialTime: new Date().getTime(), translations: document.getElementById('messages').innerHTML, config: document.getElementById('config').innerHTML, validateSignIn: "" }); app.ports.askSignIn.subscribe(function() { navigator.id.watch({ loggedInUser: null, onlogin: function(assertion) { app.ports.validateSignIn.send(assertion); }, onlogout: function() {} }); navigator.id.request(); });