Why User.getIdTokenResult missing
complete
Tomas Chmelevskij
I'm trying to implement role based access in the app and using examples from https://firebase.google.com/docs/auth/admin/custom-claims#access_custom_claims_on_the_client but getIdTokenResult seems to be missing.
Wondering if it's a missing feature or there is a reason why it's not there?
Mike Diarmid
complete
https://rnfirebase.io/docs/v5.x.x/auth/reference/User#getIdTokenResult
Jess Robins
I bumped into this too. I was able to work around it by using getIdToken() and then using jwt-decode to decode the result and the claims were there. You probably have figured this out already but just in case anyone else stumbles on this 🤷