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

Update token-exchange.ts #691

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

damonchen
Copy link

add error log for token exchange which will help user to find problem easily.

WHY are these changes introduced?

Help to fixed the problem: Shopify/shopify-app-template-remix#561

WHAT is this pull request doing?

add error log for token exchange which will help user to find problem easily.

Type of change

  • [ x ] Patch: Add error log for token exchange

Checklist

add error log for token exchange which will help user to find problem easily.
@damonchen damonchen requested a review from a team as a code owner March 9, 2024 09:33
@@ -132,6 +132,7 @@ export class TokenExchangeStrategy<Config extends AppConfigArg>
requestedTokenType,
});
} catch (error) {
logger.error('token exchange error', error)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
logger.error('token exchange error', error)
logger.error('Token exchange error', error)

For consistency

@matteodepalo
Copy link
Contributor

Thank you for the PR @damonchen, I've added a very small comment because all the other errors in the codebase are capitalized, but looks good!

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

Successfully merging this pull request may close these issues.

3 participants