mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
fixed bug with job init
This commit is contained in:
+2
-2
@@ -34,7 +34,7 @@ if (JWT_SECRETS) {
|
||||
return new jwt.AsymmetricSecret(secret, JWT_ALG);
|
||||
}));
|
||||
|
||||
debug(`loaded ${JWT_SECRET.length} secrets`);
|
||||
debug(`loaded ${JWT_SECRET.length} ${JWT_ALG.startsWith('HS') ? 'shared' : 'asymmetric'} secrets`);
|
||||
} else if (JWT_SECRET) {
|
||||
if (JWT_ALG.startsWith('HS')) {
|
||||
module.exports.jwt = new jwt.SharedSecret({
|
||||
@@ -44,5 +44,5 @@ if (JWT_SECRETS) {
|
||||
module.exports.jwt = new jwt.AsymmetricSecret(JSON.parse(JWT_SECRET), JWT_ALG);
|
||||
}
|
||||
|
||||
debug('loaded 1 secret');
|
||||
debug(`loaded a ${JWT_ALG.startsWith('HS') ? 'shared' : 'asymmetric'} secret`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user