Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only catch jwt decode errors and preserve the error message to aid debugging #1207

Merged

Conversation

tomriley
Copy link
Contributor

@tomriley tomriley commented Aug 29, 2023

Description

A small change to change that preserves JWT::DecodeError error messages to aid debugging issues with JWT decoding/validation, in particular an issue where a development machine's clock is a few seconds slower than Shopify server clocks:

Shopify/shopify_app#1214
https://github.com/kirillplatonov/shopify-hotwire-sample/issues/23

How has this been tested?

Existing tests still pass.

Checklist:

  • My commit message follow the pattern described in here
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the project documentation.
  • I have added a changelog line.

@nelsonwittwer nelsonwittwer requested a review from a team as a code owner November 8, 2023 16:29
@nelsonwittwer nelsonwittwer merged commit 9ff32e7 into Shopify:main Nov 13, 2023
4 checks passed
garethson pushed a commit to garethson/shopify-api-ruby that referenced this pull request Dec 1, 2023
…enError (Shopify#1207)

Co-authored-by: Nelson <nelsonwittwer@users.noreply.github.com>
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.

2 participants