start implementing auth

This commit is contained in:
2026-02-23 14:34:19 -05:00
parent 715c122eb7
commit af9c23c521
14 changed files with 341 additions and 24 deletions
+2
View File
@@ -13,6 +13,7 @@ type Config struct {
DBUser string
DBPassword string
DBName string
JWTSecret string
}
func GetEnv(key string) string {
@@ -32,5 +33,6 @@ func Load() *Config {
DBUser: GetEnv("DB_USER"),
DBPassword: GetEnv("DB_PASSWORD"),
DBName: GetEnv("DB_NAME"),
JWTSecret: GetEnv("JWT_SECRET"),
}
}