Skip to content

fix: improve error handling for missing refresh token parameter#368

Merged
appleboy merged 1 commit intomasterfrom
refresh
Jan 22, 2026
Merged

fix: improve error handling for missing refresh token parameter#368
appleboy merged 1 commit intomasterfrom
refresh

Conversation

@appleboy
Copy link
Owner

  • Add ErrMissingRefreshToken error for missing refresh token parameter.
  • Update RefreshHandler to use ErrMissingRefreshToken in error message.

fix #367

- Add ErrMissingRefreshToken error for missing refresh token parameter.
- Update RefreshHandler to use ErrMissingRefreshToken in error message.

fix #367

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Copilot AI review requested due to automatic review settings January 22, 2026 15:50
@appleboy appleboy merged commit 3684081 into master Jan 22, 2026
10 checks passed
@appleboy appleboy deleted the refresh branch January 22, 2026 15:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves error handling for missing refresh token parameters by introducing a new error constant and using it consistently with the existing error handling pattern.

Changes:

  • Added ErrMissingRefreshToken error constant to provide a standardized, exportable error for missing refresh token parameters
  • Updated RefreshHandler to use HTTPStatusMessageFunc with ErrMissingRefreshToken instead of a hardcoded error string

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

I couldn't override the hard-coded error message in the callback HTTPStatusMessageFunc

2 participants