refactor GET handler + impl JWTSigner

This commit is contained in:
2022-10-13 16:06:27 +00:00
parent 7073a4b88e
commit 6166310283
10 changed files with 100 additions and 33 deletions
-2
View File
@@ -68,13 +68,11 @@ impl Config {
return false;
}
// TODO: check if the file exists and rights are ok
if self.jwt_pub_key == "" {
eprintln!("invalid config parameter: JWT public key file path is empty");
return false;
}
// TODO: check if the file exists and rights are ok
if self.jwt_priv_key == "" {
eprintln!("invalid config parameter: JWT private key file path is empty");
return false;