Skip to content

Commit

Permalink
Fix: Use the kid from the function param when constructing header for…
Browse files Browse the repository at this point in the history
… jwt

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 22, 2024
1 parent 620c954 commit b301036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdjwt/sdjwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_jwt(
**kwargs,
) -> str:
assert key is not None, "Key must be provided"
header = {"typ": "JWT", "alg": get_alg_for_key(key), "kid": key.key_id, "jwk": key.export(private_key=False, as_dict=True)}
header = {"typ": "JWT", "alg": get_alg_for_key(key), "kid": kid}

iat = iat or int(time.time())
nbf = iat
Expand Down

0 comments on commit b301036

Please sign in to comment.