X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=api%2Fauth_jwt.go;h=db7e3f4e4437d4c38b494ec749464c22ec9b74ca;hb=85545aba62546f219a9c9730945511412a3174ef;hp=5ce159369a89180650aa706bf65db1d3290a5d16;hpb=b94f3416c1afe6363249b46bf2b299dfe8e4007f;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git diff --git a/api/auth_jwt.go b/api/auth_jwt.go index 5ce1593..db7e3f4 100644 --- a/api/auth_jwt.go +++ b/api/auth_jwt.go @@ -20,10 +20,6 @@ type JwtClaims struct { jwt.StandardClaims } -func SetJwtSecretKey(secret string) { - JWT_SECRET = []byte(secret) -} - func VerifyJwtToken(token string) (JwtClaims, error) { if len(JWT_SECRET) == 0 { return JwtClaims{}, fmt.Errorf("not initialized jwt secret")