Version 4.0.0 - #255
Open
deckameron wants to merge 3 commits into
Open
Conversation
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.
What's changed
New method: deleteAccount(options, callback)
Handles the full account deletion flow required by App Store Review Guideline 5.1.1(v). Re-authenticates the user with Apple to obtain a fresh authorizationCode, sends it to a backend endpoint that exchanges it for a refresh_token and revokes it via Apple's REST API.
New event: credentialRevoked
Fires when the user revokes Apple Sign In externally (e.g. via iPhone Settings). Use together with getCredentialState() on app launch to cover 100% of revocation scenarios.
Fix: duplicate scopes in authorize
Replaced append with direct assignment to prevent scopes from being duplicated when passed explicitly.
New: nonce support in authorize
The authorize method now accepts an optional nonce parameter for secure backend token validation (e.g. Firebase).
Fix: deprecated UIApplication.windows API
Updated presentationAnchor to use UIWindowScene on iOS 15+ with a fallback for iOS 13/14.
New: backend examples
Added reference implementations of the /apple/revoke endpoint in Python (Flask), Node.js (Express), and PHP (Laravel), plus a credential setup guide (APPLE_CREDENTIALS.md).
Updated: README
Fully revised to document all methods, events, constants, and the new account deletion flow.