Moved the checkJwt middleware to auth.middleware.js aswell as making both auth.middleware.js and admin.middleware.js compatible with awilix.
Added a admin validation that contains functions as "isAdmin" and "getUserByIdToken" which made it possible to replace the old auth middleware that had one function that was used while everything else was depricated.
Changed all routes that uses checkJwt and checkIfAdmin to their new counter parts now making use of awilix.
Changed the CognitoService and AdminCognitoService to use awilix and change the imports for both services.
Describe your changes
Issue ticket number and preferably a link
Issue 207
This change belongs to the following squad(s)
I have created unit tests for my code
Checklist before creating my pull request