Add JWT auth and .env support for admin login

This commit is contained in:
2025-05-17 20:47:04 +03:30
parent 0d9cf11687
commit 9565c06fba
8 changed files with 37 additions and 789 deletions

1
go.mod
View File

@@ -20,6 +20,7 @@ require (
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/leodido/go-urn v1.4.0 // indirect