Refactor auth middleware to accept multiple auth modes

This commit is contained in:
Tuan Dang
2023-01-01 09:24:20 +07:00
parent 7e4bf7f44b
commit b8a64714d2
8 changed files with 138 additions and 67 deletions
@@ -139,7 +139,7 @@ export const pullSecrets = async (req: Request, res: Response) => {
environment
});
if (channel !== 'cli') { // TODO: fix frontend to get rid of this reformat bs
if (channel !== 'cli') {
secrets = reformatPullSecrets({ secrets });
}