mirror of
https://github.com/strapi/strapi.git
synced 2025-08-31 20:33:03 +00:00
Send dashboard token
This commit is contained in:
parent
eda9b9039f
commit
7c20ab8e55
@ -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));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user