MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / _jwt_headers

Function _jwt_headers

tests/test_fastapi_v1_dashboard.py:985–991  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

983
984
985def _jwt_headers() -> dict[str, str]:
986 token = jwt.encode(
987 {"username": "fastapi-v1-test"},
988 JWT_SECRET,
989 algorithm="HS256",
990 )
991 return {"Authorization": f"Bearer {token}"}
992
993
994@pytest.mark.asyncio

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected