Actualizar back/jwtutils/jwt.go

This commit is contained in:
fede committed 2026-06-17 08:39:55 -03:00
1 parent cffc7f02ff
commit 7e314e7730
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"github.com/golang-jwt/jwt/v5"
)
var JWTSecret = []byte("supersecretkey123456789")
var JWTSecret = os.GetEnv("JWTSecret")
func ValidarJWT(tokenString string) (jwt.MapClaims, error) {
token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) {