We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f456c93 commit bb3bca8Copy full SHA for bb3bca8
core/authentication/jwt_backend.go
@@ -39,7 +39,7 @@ func InitJWTAuthenticationBackend() *JWTAuthenticationBackend {
39
}
40
41
func (backend *JWTAuthenticationBackend) GenerateToken(userUUID string) (string, error) {
42
- token := jwt.New(jwt.GetSigningMethod("RS256"))
+ token := jwt.New(jwt.SigningMethodRS512)
43
token.Claims["exp"] = time.Now().Add(time.Hour * time.Duration(settings.Get().JWTExpirationDelta)).Unix()
44
token.Claims["iat"] = time.Now().Unix()
45
token.Claims["sub"] = userUUID
0 commit comments