refactor: move JWTConfig to config package and update database initialization methods

This commit is contained in:
2025-03-31 19:11:38 +00:00
parent fcdeedf7e9
commit bcc3aadb85
3 changed files with 41 additions and 72 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func fileExists(path string) bool {
}
// generateRSAKeys generates RSA keys and saves them to disk
func generateRSAKeys(cfg models.JWTConfig) error {
func generateRSAKeys(cfg config.JWTConfig) error {
// Create key directory if it doesn't exist
if err := os.MkdirAll(cfg.KeyDir, 0700); err != nil {
return fmt.Errorf("failed to create key directory: %w", err)