feat: accept personalAccessToken as alternative auth in createCheckoutSession - #1449
Merged
wcole1-godaddy merged 1 commit intoSep 11, 2026
Conversation
🦋 Changeset detectedLatest commit: 70ab88f The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
@mmelnyk-godaddy - include a |
mmelnyk-godaddy
force-pushed
the
feat/DEVX-1079-access-token-auth
branch
3 times, most recently
from
September 11, 2026 13:34
b2e157f to
f431075
Compare
mmelnyk-godaddy
force-pushed
the
feat/DEVX-1079-access-token-auth
branch
from
September 11, 2026 13:39
f431075 to
d75d560
Compare
mmelnyk-godaddy
force-pushed
the
feat/DEVX-1079-access-token-auth
branch
2 times, most recently
from
September 11, 2026 14:48
2e8a133 to
321fe02
Compare
…tSession - PAT path routes through API Gateway via endpoint param - OAuth path unchanged (direct checkout host) - Mutual exclusivity enforced at runtime - Empty PAT rejected before OAuth fallback branch - Token caching only applies to OAuth path
mmelnyk-godaddy
force-pushed
the
feat/DEVX-1079-access-token-auth
branch
from
September 11, 2026 15:17
321fe02 to
70ab88f
Compare
pbennett1-godaddy
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
personalAccessTokenas direct Bearer token option forcreateCheckoutSessionhttps://{apiHost}/v2/commerce/stores/{storeId}/checkout-subgraph)clientId/clientSecret) unchanged — uses original direct checkout hostneverfields) enforces mutual exclusivity at compile time; runtime check as safety netChanges
packages/react/src/types.ts—CheckoutSessionAuthdiscriminated union typepackages/react/src/lib/godaddy/godaddy.ts— optionalhostoverride param (+1 line)packages/react/src/server.ts— PAT/OAuth branching, API Gateway host for PATpackages/react/src/server.test.ts— 6 unit tests (new file)Test plan
DEVX-1079