Buckets:

download
raw
393 Bytes
import pytest
from fastapi_users.jwt import SecretType, decode_jwt, generate_jwt
@pytest.mark.jwt
def test_generate_decode_jwt(secret: SecretType):
audience = "TEST_AUDIENCE"
data = {"foo": "bar", "aud": audience}
jwt = generate_jwt(data, secret, 3600)
decoded = decode_jwt(jwt, secret, [audience])
assert decoded["foo"] == "bar"
assert decoded["aud"] == audience

Xet Storage Details

Size:
393 Bytes
·
Xet hash:
5b3a10b16a5b64954ffb9f91e21e89be9b07e4964e9e9ae04c1a6295bdbdae2a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.