Skip to content

Conversation

@ben-mays-rdt
Copy link

💸 TL;DR

Reduces log spam for expired token validation. This is a non-exceptional case and we shouldn't log an error.

📜 Details

🧪 Testing Steps / Validation

Added unit test to ensure ValidateJWT will return jwt.ErrTokenExpired. Note, we don't have a way to assert on log output.

✅ Checks

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • x ] Contributor License Agreement (CLA) completed if not a Reddit employee

@ben-mays-rdt ben-mays-rdt requested a review from pacejackson May 21, 2025 18:35
Copy link
Contributor

@pacejackson pacejackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually not sure that expired tokens should be considered "non-exceptional"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants