From 2229215b92cd009b925fa11cdc3db965b5a83f92 Mon Sep 17 00:00:00 2001 From: maze Date: Sat, 14 Feb 2026 17:53:33 +0100 Subject: [PATCH] Register JWT type on import --- protocol/meshcore/crypto/jwt/jwt.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/meshcore/crypto/jwt/jwt.go b/protocol/meshcore/crypto/jwt/jwt.go index bce520d..62f0e0e 100644 --- a/protocol/meshcore/crypto/jwt/jwt.go +++ b/protocol/meshcore/crypto/jwt/jwt.go @@ -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() {