improvement(credentials): actionable Shopify admin-token rejection message#5891
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The shared connect modal no longer embeds error-code mapping; it passes the API Unit tests cover the mapper for Shopify override, generic fallback, known codes, and unknown/missing codes. Reviewed by Cursor Bugbot for commit b61c36a. Configure here. |
Greptile SummaryThe PR centralizes token service-account error messaging and adds actionable Shopify-specific invalid-token guidance.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "improvement(credentials): actionable Sho..." | Re-trigger Greptile |
…ssage Shopify custom-app token verification faithfully surfaces a real 401 from Shopify, but the generic 'double-check it in Shopify' copy didn't tell users what to check. The #1 real cause is pasting the wrong secret (API key / API secret key) instead of the shpat_ Admin API access token, or using a token bound to a different store. - Add an optional per-provider invalidCredentialsHelp override on the token service-account descriptor; set it for Shopify to name the exact fix. - Move the error-code to message mapping out of the shared connect modal into the descriptor module (getTokenServiceAccountErrorMessage) so provider copy is inherited from the definition rather than hard-coded in the modal. - Add unit tests for the mapper (override, fallback, all codes).
b2602ed to
b61c36a
Compare
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b61c36a. Configure here.
Summary
shpat_Admin API access token, or a token bound to a different store.invalidCredentialsHelpoverride on the token service-account descriptor; set it for Shopify to name the exact fix (copy theshpat_Admin API access token from the app's "API credentials" tab, confirm the app is installed, token must match the store domain).getTokenServiceAccountErrorMessage) so provider-specific copy is inherited from the definition rather than hard-coded in the modal. The modal now just unwraps the API error shape and delegates.Type of Change
Testing
site_not_found; real store + bad token → 401 →invalid_credentials.check:api-validationpass.Checklist