Check authentication from jwt on all routes

This commit is contained in:
2025-10-03 19:51:50 +02:00
parent f20e177480
commit 6e189d2ff0
4 changed files with 59 additions and 4 deletions

View File

@@ -37,3 +37,7 @@ func InitKey() error {
}
return err
}
func GetJwtKey() ([]byte, error) {
return base64.URLEncoding.DecodeString(os.Getenv(getKeyVariableName()))
}