Skip to content

Commit

Permalink
Don't nuke jwt on every startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 17, 2023
1 parent 4d668dd commit bd330d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/manager/middlewares/auth.js
Expand Up @@ -33,7 +33,11 @@ async function generateJWTKeys() {
}

async function createJwtOptions() {
await generateJWTKeys();
try {
await diskLogic.readJWTPublicKeyFile()
} catch (error) {
await generateJWTKeys();
}
const pubKey = await diskLogic.readJWTPublicKeyFile();

return {
Expand Down

0 comments on commit bd330d7

Please sign in to comment.