Register JWT type on import
This commit is contained in:
@@ -9,6 +9,12 @@ import (
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
)
|
||||
|
||||
func init() {
|
||||
jwt.RegisterSigningMethod(SigningMethod.Alg(), func() jwt.SigningMethod {
|
||||
return SigningMethod
|
||||
})
|
||||
}
|
||||
|
||||
var SigningMethod jwt.SigningMethod
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user