Revenuecat not setting claims to firebase (emulator)

  • 17 January 2023
  • 3 replies


I just finished setting up revenuecat with firebase as per documentation. I got a firebase function that is supposed to check if a user is premium via claims. I also setup the emulators accordingly, i think. I imported the extension as well and if needed i can give the firebase.json.

No trace of claims show up in either of these results called in the function after the user successfully subscribed:



    const tokenResult = await admin.auth().verifyIdToken(idToken);
    if (idToken) {"tokenResult: ", tokenResult);
      admin.auth().getUser(tokenResult.uid).then((user) => {"user: ", user);

All i get is the usual firebase auth data. It’s also not writing anything to the firestore emulator. Can anybody help me figure out what am i doing wrong?



3 replies


Can anybody please tell me if firebase functions emulator alongside revenuecat is supported? I’m stuck and i can’t move forward.


Still haven’t solved… I went through the whole setup docs for the 4th time.

Badge +3

Hi there! We’ve been working on this is a support ticket, but I wanted to post here as well for visibility to any other developers using the Firebase emulator suite.

Bear in mind when you’re running the emulator locally, that we will always send events to the HTTPS endpoint that is configured in our Firebase extension settings under “Webhook URL”. We can’t send events to a localhost endpoint. If you want our events to reach your local emulator, make sure that your device is reachable from the internet and change the “Webhook URL” to your Firebase emulator’s public address.