The two rules, as the scanner sees them
| Rule · guideline | What trips it in code or config | Fix |
|---|---|---|
| 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.8 | Third-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.1 | Login 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.
npx skills add komako-workshop/stringers # agent skill: "preflight this app for App Store review"
stringer-preflight . # or run the scanner directlyGuideline 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 is initiated inside the app. A link that opens a web page where the deletion completes is acceptable only if it goes straight to the deletion flow. "Email support to delete your account" is rejected, with a narrow exception for highly regulated industries.
- The entry point is easy to find, normally Settings > Account > Delete Account. A reviewer should reach it in a few taps from the demo account.
- It deletes the account and the associated personal data, not just the login. Deactivating, disabling or signing out does not qualify. Data you must retain by law is the exception; say so in the confirmation text.
- The user is told what happens: how long deletion takes and what is removed. A confirmation step is expected. Extra friction (surveys that cannot be skipped, a phone call) is not allowed.
- Subscriptions are handled honestly. Deleting the account does not cancel an App Store subscription. Tell the user, and link to subscription management.
- Sign in with Apple tokens are revoked if the app supports it (see below).
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:
// 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:
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:
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:
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:
- limits data collection to the user's name and email address,
- lets users keep their email address private from the developer, and
- does not collect interactions with the app for advertising without consent.
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:
- the app uses only your own account system (email and password, phone number, magic link);
- it is an education, enterprise or business app that requires an existing school or company account;
- it uses a government or industry-backed citizen identification or electronic ID system;
- it is a client for a specific third-party service (a mail, social media or cloud client) where users sign in to that service directly.
Implementation notes that affect review
- Equivalent means equivalent. The Apple button must be as prominent as the others: same size, same screen, not hidden behind "More options". Use
SignInWithAppleButtonorASAuthorizationAppleIDButtonso the artwork and wording follow Apple's Human Interface Guidelines; hand-drawn buttons with the wrong logo proportions are rejected under 4.8. - Do not ask again for what Apple gave you. If the user shared a name and email through Sign in with Apple, a second screen demanding the same fields is a rejection.
- Handle the private relay address. An address at
privaterelay.appleid.comis valid; do not block it or demand a "real" email. Register your sending domain with Apple so mail reaches relay addresses. - The name arrives once. Apple returns the full name only on the first authorization. Store it then.
- Add the capability. Native projects need the Sign in with Apple capability, which writes the
com.apple.developer.applesigninentitlement; Expo needsios.usesAppleSignIn: true; Flutter needs the capability on the Runner target. The scanner accepts any of these, or the code itself, as evidence.
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
- Create a fresh account, with Sign in with Apple if you support it.
- Add some data, then delete the account from inside the app.
- Confirm the auth record and every user-owned row and file are gone on the server.
- Open Settings > Apple Account > Sign in with Apple on the device and confirm the app is no longer listed.
- Sign up again with the same Apple ID and confirm you get a clean account.