Add Apple OIDC defaults and improve examples#56
Conversation
|
Claude finished @tolgahan-arikan's task —— View job PR Review: Add Apple OIDC defaults and improve examples
Overall this is a solid, well-tested change. The SDK behavior changes are coherent, public API surface is consistently reflected in Correctness — SDK behaviorGood: session-clearing ordering fix. Moving Good: PKCE conditional +
if (!hasCallbackParams && params.callbackUrl === undefined) {
return undefined
}This is correct for the browser "landed on a non-callback page" case (tested). Note the asymmetry: if a caller explicitly passes a
if (params.cleanUrl ?? (params.callbackUrl === undefined)) {Cleaning defaults to Test coverageCoverage is strong and behavior-focused. New/updated tests cover: Apple provider defaults, Apple query redirect flow, auth-code (non-PKCE) start+complete, browser-default Minor gap: consider a test asserting that an explicit Public API / docs
|
|
Reminder before merge/deploy: update the GitHub Pages |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00d211b862
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
openid emailscopes,response_mode=form_post, and PKCE auth-code mode.signInWithOidcRedirectand callbacks complete throughcompleteOidcRedirectAuth.Breaking Change / Migration Note
signInWithOidcRedirectis now start-and-navigate only and returnsPromise<void>. Apps should callcompleteOidcRedirectAuth()on the callback page to complete redirect auth.Validation
pnpm exec vitest run tests/oidcRedirectAuth.test.tspnpm exec vitest run tests/walletErrors.test.tspnpm exec vitest run tests/errorContracts.test.tspnpm testpnpm exec tsc --noEmitpnpm test:typespnpm buildpnpm build:examplepnpm build:wagmi-examplepnpm build:trails-actions-examplepnpm build:node-examplepnpm build:node-contract-deploy-examplegit diff --check