Skip to content

Conversation

@lanechase34
Copy link
Contributor

@lanechase34 lanechase34 commented Dec 20, 2025

Description

The JWT refresh token handler was not catching the TokenRejectionException thrown in jwtService.parseToken()

Updated the setErrorMessage calls to match the latest spec
Response function setErrorMessage( required errorMessage, statusCode )

Updated the actual error messages to not returned detailed response. Sometimes, this goes into too much detail, which could be a potential security risk exposing more information than necessary. Maybe this could use the Coldbox inDebugMode() flag to check and add this, but I'm not sure how to wire that up properly at this moment.

Type of change

  • Bug Fix

Checklist

  • My code follows the style guidelines of this project cfformat
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

Update setErrorMessage calls to match spec
Update test to check response message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant