Skip to content

v1.1.1

Choose a tag to compare

@ishantoz ishantoz released this 09 Apr 16:27
· 6 commits to main since this release

πŸ“ 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.