Skip to main content
Question

Can I use Firebase Custom Claims as a single source of truth??

  • May 27, 2025
  • 1 reply
  • 13 views

Forum|alt.badge.img+3

In my previous apps, account creation wasn't a feature, so I relied solely on RevenueCat's SDK to determine subscriber status.


However, my new app incorporates an account system powered by Firebase Authentication. I plan to integrate the RevenueCat Firebase extension to facilitate this. My goal is to grant premium access to users consistently across Android, iOS, and web platforms.


Therefore, I'm wondering if Firebase Auth custom claims can serve as the sole mechanism for checking a user's subscription status. My concern is that if a user signs in with their premium app account but uses a different Apple ID or Gmail (not linked to the original purchase), the RevenueCat SDK might incorrectly return 'false' for their subscription status."

This post has been closed for comments

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • May 29, 2025

Hi! Yes, you can use Firebase custom claims in order to check subscription status. Here is our documentation on how to do so.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings