firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

[FR] Missing claims on GetToken

Open Lyokone opened this issue 2 years ago • 3 comments

Feature proposal

  • Firebase Component: Auth (Auth, Core, Database, Firestore, Messaging, Storage, etc)

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

Lyokone avatar Nov 28 '23 14:11 Lyokone

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.

klondikedragon avatar Mar 23 '24 03:03 klondikedragon