Skip to content

Version 4.0.0 - #255

Open
deckameron wants to merge 3 commits into
tidev:masterfrom
deckameron:master
Open

Version 4.0.0#255
deckameron wants to merge 3 commits into
tidev:masterfrom
deckameron:master

Conversation

@deckameron

Copy link
Copy Markdown

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.

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