Private
Public Access
Actualizar back/jwtutils/jwt.go
This commit is contained in:
1 parent
cffc7f02ff
commit
7e314e7730
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user