Updates to docs, fix bug with jwt

This commit is contained in:
Wyatt Johnson
2017-07-26 11:23:09 +10:00
parent 557bda6444
commit 2dbcb0fe45
2 changed files with 87 additions and 18 deletions
+6
View File
@@ -110,6 +110,12 @@ if (process.env.NODE_ENV === 'test' && !CONFIG.JWT_SECRET) {
);
}
// If this is not employing a HMAC based signing method, then we need to turn
// the secret into a buffer.
if (!CONFIG.JWT_ALG.startsWith('HS')) {
CONFIG.JWT_SECRET = Buffer.from(CONFIG.JWT_SECRET);
}
//------------------------------------------------------------------------------
// External database url's
//------------------------------------------------------------------------------