Skip to content

feat(auth): add native Apple sign-in - #1673

Merged
realcodesiman merged 4 commits into
mainfrom
feat/apple-signin
Nov 11, 2026
Merged

realcodesiman merged 4 commits into
mainfrom
feat/apple-signin

Conversation

@realcodesiman

@realcodesiman realcodesiman commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the native Sign in with Apple id_token grant for mobile authentication.
  • Verify configured iOS bundle IDs and support verified placeholder-account claims.
  • Document configuration, behavior, and error responses.

Verification

  • pnpm lint
  • pnpm --filter @chatbotx.io/auth exec tsc --noEmit
  • pnpm --filter builder check-types
  • Focused auth and builder Vitest suites
  • Full auth coverage: passed (87.36% statements, 81.18% branches, 87.69% functions, 87.8% lines).
  • Full builder suite: 1,130 files and 10,283 tests passed. Its coverage command fails the existing global 80% threshold at 45.6% statements, 40.67% branches, 36.58% functions, and 45.79% lines.

@github-actions github-actions Bot added the feature New feature or request label Nov 9, 2026
Extract the Apple ID token verifier into its own module and accept only
the SHA-256 hex of the raw nonce, since a raw nonce claim is readable in
the token and would void replay protection. Log failures when resolving
the identity token subject instead of swallowing them.
@realcodesiman
realcodesiman merged commit f371c5c into main Nov 11, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the feat/apple-signin branch November 11, 2026 08:10
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* feat(auth): add native Apple sign-in

* fix(auth): enforce apple signup lockdown

* fix(auth): harden native Apple token validation

* fix(auth): require hashed nonce for native Apple sign-in

Extract the Apple ID token verifier into its own module and accept only
the SHA-256 hex of the raw nonce, since a raw nonce claim is readable in
the token and would void replay protection. Log failures when resolving
the identity token subject instead of swallowing them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant