You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance OAuth2TokenManager with additional token validation checks
- Updated the `isTokenValid` method to include checks for the presence of the refresh token.
- Improved the `isValidTokenData` method to validate token data structure and values more thoroughly, ensuring that access and refresh tokens are non-empty strings and that the expiry date is a valid finite number.
- Modified the `setTokenData` method to throw an error if invalid token data is provided.
- Enhanced the `setTokenDataForTesting` method to handle null token data appropriately.
These changes further strengthen the OAuth2 token management implementation by ensuring comprehensive validation of token data, improving error handling, and enhancing overall code reliability.
0 commit comments