Hi.
I have used the Revenuecat extension for firebase for a while, but have not found the use of it as I cant see custom claims in the idTokenResult.
I want to use custom claims to only allow users with subscription to upload files and then use this custom claims on firestore rules instead of only checking permission inside the application.
I have configured the extension in revenuecat and enabled custom claims in the extension:
Should custom claims be set in Firebase Auth with the user's active entitlements? Description
ENABLED
But when i fetch the entitlements in application, i only get theese:
user?.getIdTokenResult(true).then((value) => print(value));
{
"firebase":{
"identities":{
"email":[
"x"
]
},
"sign_in_provider":"password"
},
"user_id":"x",
"aud":"x-app",
"exp":"x",
"iat":"x",
"iss":"x",
"sub":"x",
"email":"x",
"email_verified":true,
"auth_time":"x"
}
Any suggestions, or cant revenuecat set custom claims that i can use in the firestore rules and app to check entitlements?
Thanks