Register JWT type on import

This commit is contained in:
2026-02-14 17:53:33 +01:00
parent 62bb18c9be
commit 2229215b92

View File

@@ -9,6 +9,12 @@ import (
"github.com/golang-jwt/jwt/v5" "github.com/golang-jwt/jwt/v5"
) )
func init() {
jwt.RegisterSigningMethod(SigningMethod.Alg(), func() jwt.SigningMethod {
return SigningMethod
})
}
var SigningMethod jwt.SigningMethod var SigningMethod jwt.SigningMethod
func init() { func init() {