diff --git a/lib/configuration/hooks/studio/index.js b/lib/configuration/hooks/studio/index.js index 3829bb51e6..3808a7a883 100644 --- a/lib/configuration/hooks/studio/index.js +++ b/lib/configuration/hooks/studio/index.js @@ -278,20 +278,13 @@ module.exports = function (strapi) { appName: strapi.config.name, publicKey: strapi.rsa.exportKey('private'), secretKey: strapi.config.studio.secretKey, + dashboardToken: strapi.config.dashboard.token, token: strapi.token, env: strapi.config.environment }; - } else { - object = { - appId: strapi.config.studio.appId, - appName: strapi.config.name, - publicKey: strapi.rsa.exportKey('private'), - secretKey: strapi.config.studio.secretKey, - env: strapi.config.environment - }; - } - socket.emit('check', key.encrypt(object)); + socket.emit('check', key.encrypt(object)); + } } }); }