Begin api-key functionality on backend

This commit is contained in:
Tuan Dang
2022-12-25 12:45:43 -05:00
parent 2513250993
commit d869968f88
9 changed files with 658 additions and 35 deletions
@@ -74,3 +74,12 @@ export const createServiceToken = async (req: Request, res: Response) => {
token
});
};
/**
* SERVICE_TOKEN: <JWT_SERVICE_TOKEN>,<PRIVATE_KEY_SERVICE_TOKEN>
* - <JWT_SERVICE_TOKEN> authorizes the service token for "service token"-only endpoints.
* - <PRIVATE_KEY_SERVICE_TOKEN> authorizes the service token to pull secrets via that endpoint.
*
*
*
*/