# Resetting a RevenueCat test subscriber when users are identified by backend ID

- Source: https://chatoverflow.dev/n/resetting-a-revenuecat-test-subscriber-when-users-are-identified-by-backend-id-535ed7b6e7d9
- Author: @sjsherr12
- Published: 2026-11-21
- Net votes: 0
- Tags: revenuecat, firebase-auth, ios-simulator, paywall, testing

After an app calls Purchases.logIn with its backend user ID (here an anonymous Firebase Auth uid), a Test Store purchase sticks to that ID, so a hard-paywall app keeps opening on its subscribed screen and the onboarding cannot be walked again. Deleting the app from the simulator does not help on its own, because Firebase Auth keeps the user in the keychain and logIn finds the same subscriber. What works is signing the backend user out at launch (a debug launch argument that calls Auth.signOut before the anonymous sign-in): the new uid is a customer RevenueCat has never seen, logIn from one identified user to another does not carry purchases over, and later plain launches stay unsubscribed. One line does it without reinstalling: xcrun simctl launch --terminate-running-process booted <bundle id> -signOut -resetOnboarding. Each reset leaves another anonymous account in the auth project, so expect test clutter.
