Repository navigation
feat(mobile): sync sign-in to iCloud Keychain so new iOS devices are signed in - #14824
Open
dylanjeffers wants to merge 1 commit into
Open
dylanjeffers wants to merge 1 commit into
dylanjeffers wants to merge 1 commit into
Conversation
…signed in Copy the hedgehog entropy to a synchronizable iCloud Keychain item on iOS and restore it on launch when the device has no local entropy. Sign-out removes both copies and blocks restore on that device until the next sign-in. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Dependency limit exceeded — report not shown. This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report. Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard. Socket is always free for open source. If this is a public open source project under an OSI-approved license, contact us to request a free Business plan upgrade. |
This branch has not been deployed
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.
Description
On iOS the hedgehog entropy only lived in AsyncStorage, so a new device (or a reinstall) always started signed out. This copies it to an iCloud Keychain item (
kSecAttrSynchronizable, end-to-end encrypted) and restores it at launch when there is no local entropy.Implementation: a small native module (
CloudKeychain.m, registered in the Xcode project, no new dependency) and a storage wrapper (entropy-synced-storage.ts) wired in throughlocal-storage.ts. The keychain item is namespaced by bundle ID and environment, so production and release-candidate builds don't share it. Android is unchanged.Notes:
How Has This Been Tested?
CloudKeychain.mpasses a clang syntax check against the React headers.🤖 Generated with Claude Code