Skip to content

Commit c868440

Browse files
committed
docs: document optional license_token and JWKS on validate_license
1 parent 95e8aed commit c868440

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

licensechain/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,17 @@ async def validate_license(
443443
self, license_key: str, app_id: Optional[str] = None, hwuid: Optional[str] = None
444444
) -> Dict[str, Any]:
445445
"""
446-
Validate a license key.
446+
Validate a license key (POST /v1/licenses/verify).
447447
448448
Args:
449449
license_key: License key to validate
450450
app_id: Application ID for validation (optional)
451451
hwuid: Optional hardware/device ID for ecosystem HMAC/HWUID contract
452452
453453
Returns:
454-
License validation result
454+
Full API JSON. When the API has license JWT signing configured, the payload may
455+
include ``license_token`` (RS256 JWT), ``license_token_expires_at``, and
456+
``license_jwks_uri`` for offline verification with the JWKS at GET /v1/licenses/jwks.
455457
"""
456458
payload: Dict[str, Any] = {"key": license_key}
457459
if app_id:

0 commit comments

Comments
 (0)