{"action":"closed","issue":{"url":"https://api.github.com/repos/plivo/plivo-web-sdk-example/issues/5","labels_url":"https://api.github.com/repos/plivo/plivo-web-sdk-example/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/plivo/plivo-web-sdk-example/issues/5/comments","events_url":"https://api.github.com/repos/plivo/plivo-web-sdk-example/issues/5/events","html_url":"https://github.com/plivo/plivo-web-sdk-example/issues/5","id":41236917,"number":5,"title":"Login seems to fail silently","user":{"login":"davidbanham","id":631832,"avatar_url":"https://avatars.githubusercontent.com/u/631832?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbanham","html_url":"https://github.com/davidbanham","followers_url":"https://api.github.com/users/davidbanham/followers","following_url":"https://api.github.com/users/davidbanham/following{/other_user}","gists_url":"https://api.github.com/users/davidbanham/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbanham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbanham/subscriptions","organizations_url":"https://api.github.com/users/davidbanham/orgs","repos_url":"https://api.github.com/users/davidbanham/repos","events_url":"https://api.github.com/users/davidbanham/events{/privacy}","received_events_url":"https://api.github.com/users/davidbanham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-08-27T00:13:24Z","updated_at":"2015-07-21T06:28:16Z","closed_at":"2015-07-21T06:28:16Z","body":"```javascript\r\nPlivo.onReady = function() {\r\n    var user = 'redacted@phone.plivo.com';\r\n    var pass = 'redacted';\r\n\r\n    Plivo.conn.login(user, pass);\r\n    console.log('login called') // This fires as expected\r\n};\r\n\r\nPlivo.onLogin = function() {\r\n    console.log('caught onlogin'); // This never fires\r\n    var dest = \"redacted\";\r\n    Plivo.conn.call(dest); // When this function is manually triggered, this surfaces the error \"PlivoWebSDK:error : you need to be logged in before make a call \"\r\n};\r\n\r\nPlivo.onLoginFailed = function(err) {\r\n    console.log('login failed', err); // This also never fires\r\n};\r\n\r\nPlivo.init({debug: true});\r\n\r\n```\r\n\r\nI would normally dig into the code to figure out the issue and possibly submit a PR, but the SDK appears to be closed source."}}