(
encoded_jwt: str,
secret: SecretType,
audience: list[str],
algorithms: list[str] = [JWT_ALGORITHM],
)
| 28 | |
| 29 | |
| 30 | def decode_jwt( |
| 31 | encoded_jwt: str, |
| 32 | secret: SecretType, |
| 33 | audience: list[str], |
| 34 | algorithms: list[str] = [JWT_ALGORITHM], |
| 35 | ) -> dict[str, Any]: |
| 36 | return jwt.decode( |
| 37 | encoded_jwt, |
| 38 | _get_secret_value(secret), |
| 39 | audience=audience, |
| 40 | algorithms=algorithms, |
| 41 | ) |