Skip to content

Commit

Permalink
add TODO - renewal of trusted subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
aramovic79 committed Jan 29, 2025
1 parent 863f155 commit 1c06279
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cds.on("bootstrap", async (app) => {
cds.context = {};
}

// TODO: Renewal of trustedSubjects every 7 days ?
const trustedSubjects = await getTrustedSubjects();
cds.context.trustedSubjects = trustedSubjects;

Expand Down Expand Up @@ -36,8 +37,4 @@ cds.on("bootstrap", async (app) => {
});
});

cds.on("shutdown", () => {
delete cds.context.trustedSubjects
});

module.exports = cds.server;

0 comments on commit 1c06279

Please sign in to comment.