This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/arm by this push:
     new 0f0e72fa Remove unverified_header_and_payload function as unused. 
Closes #672.
0f0e72fa is described below

commit 0f0e72fa271311db3c15d079ed45735ad5a09586
Author: Alastair McFarlane <[email protected]>
AuthorDate: Tue Feb 17 11:21:13 2026 +0000

    Remove unverified_header_and_payload function as unused. Closes #672.
---
 atr/jwtoken.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/atr/jwtoken.py b/atr/jwtoken.py
index 252c0a7d..27bc937d 100644
--- a/atr/jwtoken.py
+++ b/atr/jwtoken.py
@@ -82,17 +82,6 @@ def require[**P, R](func: Callable[P, Coroutine[Any, Any, 
R]]) -> Callable[P, Aw
     return wrapper
 
 
-def unverified_header_and_payload(jwt_value: str) -> dict[str, Any]:
-    header = jwt.get_unverified_header(jwt_value)
-
-    try:
-        payload = jwt.decode(jwt_value, options={"verify_signature": False})
-    except jwt.PyJWTError as e:
-        raise RuntimeError(f"Failed to decode JWT: {e}") from e
-
-    return {"header": header, "payload": payload}
-
-
 def verify(token: str) -> dict[str, Any]:
     return jwt.decode(
         token,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to