Home Assistant Unofficial Reference 2024.12.1
homeassistant.auth.jwt_wrapper._PyJWTWithVerify Class Reference
Inheritance diagram for homeassistant.auth.jwt_wrapper._PyJWTWithVerify:
[legend]
Collaboration diagram for homeassistant.auth.jwt_wrapper._PyJWTWithVerify:
[legend]

Public Member Functions

dict[str, Any] decode_payload (self, str jwt, str key, dict[str, Any] options, list[str] algorithms)
 
dict[str, Any] verify_and_decode (self, str jwt, str key, list[str] algorithms, str|None issuer=None, float|timedelta leeway=0, dict[str, Any]|None options=None)
 

Detailed Description

PyJWT with a fast decode implementation.

Definition at line 56 of file jwt_wrapper.py.

Member Function Documentation

◆ decode_payload()

dict[str, Any] homeassistant.auth.jwt_wrapper._PyJWTWithVerify.decode_payload (   self,
str  jwt,
str  key,
dict[str, Any]  options,
list[str]   algorithms 
)
Decode a JWT's payload.

Definition at line 59 of file jwt_wrapper.py.

◆ verify_and_decode()

dict[str, Any] homeassistant.auth.jwt_wrapper._PyJWTWithVerify.verify_and_decode (   self,
str  jwt,
str  key,
list[str]  algorithms,
str | None   issuer = None,
float | timedelta   leeway = 0,
dict[str, Any] | None   options = None 
)
Verify a JWT's signature and claims.

Definition at line 75 of file jwt_wrapper.py.


The documentation for this class was generated from the following file: