import GasAuth from 'GasAuth'; import {COMPLETE, ERROR} from 'GasAuth'; const gasAuth = new GasAuth(callback); function callback(type){ switch(type){ case "error": break; case "complete": gasAuth.callScriptFunction("nanika", [], (res)=> { console.log("result:", res); }, false); break; } }