1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-15 21:11:29 +01:00
Files
core/tests/auth/test_jwt_wrapper.py
T
renovate[bot] 0f0ceaace2 Update PyJWT to 2.12.1 (#168239)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Resch <robert@resch.dev>
2026-04-16 10:44:41 +02:00

13 lines
371 B
Python

"""Tests for the Home Assistant auth jwt_wrapper module."""
import jwt
import pytest
from homeassistant.auth import jwt_wrapper
async def test_reject_access_token_with_impossible_large_size() -> None:
"""Test rejecting access tokens with impossible sizes."""
with pytest.raises(jwt.DecodeError):
jwt_wrapper.unverified_hs256_token_decode("a" * 10000)