Skip to content

Commit 2327b46

Browse files
author
Giuseppe De Marco
authored
fix: JWS header typ according to RFC7519
1 parent ec79b98 commit 2327b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cryptojwt/jws/jws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def sign_compact(self, keys=None, protected=None, **kwargs):
116116
key, xargs, _alg = self.alg_keys(keys, "sig", protected)
117117

118118
if "typ" in self:
119-
xargs["type"] = self["typ"]
119+
xargs["typ"] = self["typ"]
120120

121121
_headers.update(xargs)
122122
jwt = JWSig(**_headers)

0 commit comments

Comments
 (0)