Hi, I've just started working on the Retool app with Firebase resources. Unfortunately I couldn't find "Update custom claims" action type while there is no support for customClaims updating using user update method.
So the question: is there any way to somehow update claims using Retool?
Hey there, to do this I think you need to enable raw firebase queries which is in beta. We can enable it for you but since this post is on the forum, we don't know which org you belong to. Could you go into your retool instance and chat with us using the little chat helper bubble?
Also could you write here step by step how to enable these raw queries? I just asked for it on chat, but unfortunately there is a info that you will be available there tomorrow.
Hi Marcin! I'd be happy to help enable the raw Firebase queries for you, with a couple caveats 😅 Feel free to write into us into support@retool.com so we can walk you through it!
Of course @doug! Added the beta to your org Let me know if you have any issues finding it (it should show up as a resource type inside of a query's resource dropdown)
Hmm! The snippet you sent is from a JS query? If so, you don’t need the double curlies around component values.
And what is the name of your target query? Do you have a screenshot of that query so we can see how the target query is receiving the scope?
These raw queries are a bit of a mystery to all of us, unfortunately they’re not so much in Beta, but more so sunsetted. I just enable them for users that will be unblocked by them.
Quick follow up question here: I'm having difficulty accessing certain aspects of the firebase admin sdk within the 'raw query' section.
Here is a screenshot of my code that isn't working - it seems to not import the 'getAuth' function here. The error simply shows 'bad request'. Any recommendations on how to resolve this? Thanks!