Skip to content

Commit bb3bca8

Browse files
author
raulgzm
committed
SigningMethodRS512
1 parent f456c93 commit bb3bca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/authentication/jwt_backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func InitJWTAuthenticationBackend() *JWTAuthenticationBackend {
3939
}
4040

4141
func (backend *JWTAuthenticationBackend) GenerateToken(userUUID string) (string, error) {
42-
token := jwt.New(jwt.GetSigningMethod("RS256"))
42+
token := jwt.New(jwt.SigningMethodRS512)
4343
token.Claims["exp"] = time.Now().Add(time.Hour * time.Duration(settings.Get().JWTExpirationDelta)).Unix()
4444
token.Claims["iat"] = time.Now().Unix()
4545
token.Claims["sub"] = userUUID

0 commit comments

Comments
 (0)