diff --git a/client/coral-embed/src/index.js b/client/coral-embed/src/index.js index 47c761bd3..d90591f2f 100644 --- a/client/coral-embed/src/index.js +++ b/client/coral-embed/src/index.js @@ -55,7 +55,9 @@ function configurePymParent(pymParent, opts) { } pymParent.onMessage('checkLogin', function(result) { - console.log(JSON.parse(result)); + if (opts.onAuthChange) { + opts.onAuthChange(JSON.parse(result)); + } }); // Sends config to the child