Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
436 stars 128 forks source link

Fix dev session refresh token #4801

Closed isaacroldan closed 1 week ago

isaacroldan commented 1 week ago

WHY are these changes introduced?

Dev session wasn't processing 401 errors, which means it wasn't refreshing tokens and the session crashed once the token expires.

Fixes https://github.com/Shopify/develop-app-inner-loop/issues/2295

WHAT is this pull request doing?

How to test your changes?

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

Checklist

github-actions[bot] commented 1 week ago

We detected some changes at packages/*/src and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.

github-actions[bot] commented 1 week ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟡 Statements
72.08% (-0.04% 🔻)
8364/11603
🟡 Branches
68.56% (-0.01% 🔻)
4054/5913
🟡 Functions
71.38% (-0.09% 🔻)
2195/3075
🟡 Lines
72.45% (-0.03% 🔻)
7908/10915
Show files with reduced coverage 🔻
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------- | :------- | :------------------------------------------------------------- | :------------------------------------------------------------- | | 🔴 |
`...` / dev-session.ts
|
4.17% (-0.25% 🔻)
| 0% |
6.67% (-1.03% 🔻)
|
4.62% (-0.3% 🔻)
| | 🔴 |
`...` / app-management-client.ts
|
20.33% (-0.34% 🔻)
| 9.52% |
22.11% (-0.48% 🔻)
|
18.75% (-0.17% 🔻)
|

Test suite run success

1894 tests passing in 866 suites.

Report generated by 🧪jest coverage report action from 0016847eec47c07950a3fd810863ca080e9315b5