Skip to content

Add native Sign in with Apple to the scheduler - #317

Merged
haltakov merged 3 commits into
mainfrom
codex/ios-sign-in-with-apple
Dec 3, 2026
Merged

haltakov merged 3 commits into
mainfrom
codex/ios-sign-in-with-apple

Conversation

@haltakov

@haltakov haltakov commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a native Sign in with Apple endpoint using the existing Better Auth account and session flow.
  • Validate the app identity and nonce, exchange the single-use grant with Apple, and encrypt provider tokens with the scheduler encryption provider.
  • Expose the Apple sign-in capability to native clients only when the server is configured. Google and email authentication remain available.

Verification

  • Local scheduler integration tests cover Apple grant validation, replay rejection, encrypted token storage, returning sessions, Google sign-in, and email OTP.
  • The Apple integration test uses a mock Apple issuer and a disposable Postgres database.

Rollout

Configure the Apple team ID, key ID, and signing key in the scheduler’s deployment secret store. The endpoint stays disabled without this configuration. Verify a real device sign-in before selecting an Apple-enabled build for public review.

@haltakov
haltakov merged commit 56761eb into main Dec 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant