mirror of
https://github.com/strapi/strapi.git
synced 2025-09-01 04:42:58 +00:00
Send dashboard token
This commit is contained in:
parent
eda9b9039f
commit
7c20ab8e55
@ -278,21 +278,14 @@ module.exports = function (strapi) {
|
|||||||
appName: strapi.config.name,
|
appName: strapi.config.name,
|
||||||
publicKey: strapi.rsa.exportKey('private'),
|
publicKey: strapi.rsa.exportKey('private'),
|
||||||
secretKey: strapi.config.studio.secretKey,
|
secretKey: strapi.config.studio.secretKey,
|
||||||
|
dashboardToken: strapi.config.dashboard.token,
|
||||||
token: strapi.token,
|
token: strapi.token,
|
||||||
env: strapi.config.environment
|
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));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user