Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase custom claims are not set #95

Open
lukyanov opened this issue Feb 2, 2025 · 2 comments
Open

Firebase custom claims are not set #95

lukyanov opened this issue Feb 2, 2025 · 2 comments

Comments

@lukyanov
Copy link

lukyanov commented Feb 2, 2025

I just recently enabled the extension using the repo.
Everything works as expected except custom claims:

  • events are stored
  • user objects are updated with entitlements
  • but no custom claims in FIrebase auth user

The corresponding setting is enabled:

Image

Could someone help me to understand how I can debug this further?

@lukyanov
Copy link
Author

lukyanov commented Feb 2, 2025

I figured this out. In the logs I found an error that said I needed to add roles/serviceusage.serviceUsageConsumer permission to the extension service.
I haven't seen it anywhere in the documentation.

@moertel
Copy link

moertel commented Feb 13, 2025

I can confirm I'm seeing the same errors in the logs after freshly enabling the extension. Just leaving this here in case someone is wondering where these logs are visible and where the permission needs to be added.

Image

Searching for the role "Service Usage Consumer" and adding it did the trick.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants