firebase / firebase-cpp-sdk

Firebase C++ SDK
http://firebase.google.com
Apache License 2.0
275 stars 115 forks source link

[FR] Missing claims on GetToken #1494

Open Lyokone opened 10 months ago

Lyokone commented 10 months ago

Feature proposal

On other platforms, we have a way of accessing the claims associated with a token. For instance on Android: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/GetTokenResult

On Desktop C++ the GetToken only returns a string: https://firebase.google.com/docs/reference/cpp/class/firebase/auth/user#gettoken

We should support claims.

Requested on FlutterFire repo: https://github.com/firebase/flutterfire/issues/11949

klondikedragon commented 6 months ago

I'm also experiencing this issue. I was using flutterfire_desktop before and it was properly returning claims. However, flutterfire_desktop is not maintained and the latest versions of flutter require the later versions of the firebase flutter packages, which are no longer compatible with flutterfire_desktop packages.