Stringers/Guides
App Store Review & Preflight

Guideline 5.1.1(v) account deletion and Guideline 4.8 Sign in with Apple

Two rules cause most account-related rejections. 5.1.1(v): an app that lets people create an account must let them delete it, inside the app. 4.8: an app that offers Google, Facebook or another social login must offer an equivalent privacy-preserving option. Both are blockers in the preflight scanner, and both have precise definitions.

Updated Rules from stringer-preflight 1.1.0 (MIT)By Stringers

The two rules, as the scanner sees them

Rule · guidelineWhat trips it in code or configFix
IOS-AUTH-002CRITICAL Apple 5.1.1(v)Account creation without in-app account deletion
A sign-up call (Auth.auth().createUser, .auth.signUp(, createUserWithEmailAndPassword, signUp() and nothing that deletes an account (deleteAccount, delete_user, currentUser.delete()).
Add an in-app flow that lets the user delete the account and its data, not just sign out.
IOS-AUTH-001CRITICAL Apple 4.8Third-party social login without Sign in with Apple
A Google, Facebook, Kakao, Naver or LINE login SDK (GIDSignIn, @react-native-google-signin, google_sign_in, FBSDKLoginKit, flutter_facebook_auth) with no Sign in with Apple code, entitlement or Expo ios.usesAppleSignIn.
Offer Sign in with Apple (or another login that meets the 4.8 privacy requirements) next to the third-party login.
IOS-META-002WARN Apple 2.1Login flow detected: App Review needs a working demo account
Sign-in code (signIn(, LoginView, SignInScreen, ASAuthorizationController, Auth.auth()) and no demo account in the audited metadata.
Put a demo username and password plus step-by-step review notes in App Store Connect (App Review Information).

Both findings come with a file:line: the sign-up call or the social login import that triggered them.

bash
npx skills add komako-workshop/stringers   # agent skill: "preflight this app for App Store review"
stringer-preflight .                       # or run the scanner directly

Guideline 5.1.1(v): what counts as account deletion

The rule has applied to all submissions since June 30, 2022. Apple's requirements, condensed:

Deletion needs a server

Client SDKs cannot delete an arbitrary user, by design. The reliable pattern is one authenticated endpoint that deletes the user's rows and files, then the auth record. With Supabase, as an Edge Function:

ts
// supabase/functions/delete-account/index.ts
import { createClient } from 'npm:@supabase/supabase-js@2'

Deno.serve(async (req) => {
  const admin = createClient(Deno.env.get('SUPABASE_URL')!, Deno.env.get('SUPABASE_SERVICE_ROLE_KEY')!)
  const jwt = (req.headers.get('Authorization') ?? '').replace('Bearer ', '')
  const { data: { user }, error } = await admin.auth.getUser(jwt)
  if (error || !user) return new Response('Unauthorized', { status: 401 })

  await admin.from('profiles').delete().eq('id', user.id)      // repeat for every user-owned table and storage bucket
  const { error: delErr } = await admin.auth.admin.deleteUser(user.id)
  return new Response(delErr ? delErr.message : 'deleted', { status: delErr ? 500 : 200 })
})

The client side is a button and one call. Name it for what it does; the scanner looks for deleteAccount, delete_user, account_deletion, currentUser.delete() and similar:

swift
func deleteAccount() async throws {
    try await supabase.functions.invoke("delete-account")
    try await supabase.auth.signOut()
}

With Firebase Auth, the client can delete its own user, but only shortly after signing in:

swift
func deleteAccount() async throws {
    guard let user = Auth.auth().currentUser else { return }
    try await user.reauthenticate(with: credential)   // required when the last sign-in is not recent
    try await deleteUserData(uid: user.uid)            // Firestore documents, Storage files
    try await user.delete()
}

Firestore and Storage data is not removed with the auth record. Delete it from a Cloud Function triggered by user deletion, or install the "Delete User Data" extension, and test with a real account that the documents are gone.

Revoking Sign in with Apple tokens

If users can sign in with Apple, deleting the account should also revoke the Apple token so the app disappears from the user's Apple ID settings. Server side, call Apple's REST endpoint with the refresh token you stored at sign-in:

bash
curl -X POST https://appleid.apple.com/auth/revoke \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'client_id=com.yourcompany.yourapp' \
  -d 'client_secret=<ES256 JWT signed with your Sign in with Apple key>' \
  -d 'token=<the refresh token>' \
  -d 'token_type_hint=refresh_token'

With Firebase, Auth.auth().revokeToken(withAuthorizationCode:) does the same from the client after a fresh Apple sign-in. Skipping revocation is a frequent reason a deletion flow that otherwise works is rejected.

Guideline 5.1.1(v): do not force a login you do not need

The same paragraph says that an app without significant account-based features must let people use it without logging in. A calculator, a wallpaper app or an AI photo tool that demands an email before showing anything is rejected. If accounts exist only for sync or purchase restoration, add "Continue as guest" or defer sign-up until the feature that needs it. Related: an app may not require personal information that is not needed for its core function.

Guideline 4.8: when Sign in with Apple is mandatory

Guideline 4.8 (Login Services) applies when an app uses a third-party or social login to set up or authenticate the user's primary account: Facebook Login, Google Sign-In, Sign in with X, LinkedIn, Amazon, WeChat. Such an app must also offer, as an equivalent option, a login service that:

Sign in with Apple meets all three, and it is what reviewers expect to see. The rule's wording allows another service with the same properties, but no mainstream alternative offers hidden email, so in practice: Google or Facebook button present means Apple button present.

You do not need it when:

Implementation notes that affect review

Stack-specific code is in the Expo and React Native checklist, the SwiftUI checklist and the Flutter guide.

Give the reviewer a way in

IOS-META-002 is the warning that accompanies every login: App Review needs a demo account. Put a username and password in App Store Connect under App Review Information, make sure the account has data in it and reaches every gated screen, and check it still works on the day you submit. If login needs a one-time code, provide a fixed code for the demo account and say so in the notes. A reviewer who cannot sign in rejects under Guideline 2.1 without looking at anything else.

Test the whole flow once

  1. Create a fresh account, with Sign in with Apple if you support it.
  2. Add some data, then delete the account from inside the app.
  3. Confirm the auth record and every user-owned row and file are gone on the server.
  4. Open Settings > Apple Account > Sign in with Apple on the device and confirm the app is no longer listed.
  5. Sign up again with the same Apple ID and confirm you get a clean account.

Run the free preflight scan

A deterministic, read-only scanner: 26 App Store rejection rules, one Python file, no login, no network calls. Install the skill and ask your coding agent to "preflight this app for App Store review".

Open App Store Preflight
npx skills add komako-workshop/stringers
★ Star on GitHub

Open Source (MIT) · Star komako-workshop/stringers on GitHub

Frequently asked questions

Is account deletion required for every iOS app?

It is required for every app that supports account creation, under Guideline 5.1.1(v). Apps with no accounts are unaffected.

Can I ask users to email support to delete their account?

No. Deletion must be initiated in the app. Apple allows a customer-service step only for apps in highly regulated industries, and the entry point must still be in the app.

Is deactivating an account enough?

No. The guideline requires deleting the account and its associated personal data. Temporarily disabling or signing out does not meet it.

When is Sign in with Apple required?

When the app uses a third-party or social login such as Google or Facebook for the user's primary account. Apps that only use their own email and password system, and the listed education, enterprise, government-ID and third-party-client cases, are exempt.

Do I have to revoke the Sign in with Apple token when deleting an account?

Yes, Apple expects apps that support Sign in with Apple to revoke user tokens on deletion, using the https://appleid.apple.com/auth/revoke endpoint or an SDK wrapper around it.

Related guides