Repository navigation
v1.1.1
π Release Notes β Version 1.1.1
Release Date: April 9, 2025
π§ Enhancements
New Method Added:
Introduced a public verifyToken(string $jwt): array method in CognitoTokenVerifier.
This method can verify both ID and access tokens generically, returning decoded claims or throwing a CognitoTokenException on failure.
Improved Documentation:
Added PHPDoc blocks for verifyToken() to clearly define return types and exception behavior.
β
Usage Examples Updated
Added sample usage of verifyToken($token) to demonstrate how to verify any type of Cognito JWT token (ID or access).
Clarified and updated code examples for verifying both ID tokens and Access tokens separately.
π Bug Fixes / Cleanups
Updated incorrect method call in example:
verifyAccessToken($accessToken) was mistakenly shown as verifyIdToken($idToken) again β now corrected to reflect actual intent.
π¦ Package Info
Version bump: 1.1.0 β 1.1.1 in composer.json.
Let me know if you'd like this in Markdown format or want to auto-generate a CHANGELOG.md.