diff --git a/jwt.go b/jwt.go index cfe2d6b..b76c873 100644 --- a/jwt.go +++ b/jwt.go @@ -32,14 +32,7 @@ type Token struct { // Create a new Token. Takes a signing method func New(method SigningMethod) *Token { - return &Token{ - Header: map[string]interface{}{ - "typ": "JWT", - "alg": method.Alg(), - }, - Claims: MapClaim{}, - Method: method, - } + return NewWithClaims(method, MapClaim{}) } func NewWithClaims(method SigningMethod, claims Claims) *Token {