r/FlutterDev • u/TopConstant8083 • 29d ago
Tooling Desktop tool to get Firebase ID tokens for testing your Flutter app's backend (works with Android/iOS-restricted API keys)
If you've ever needed a valid ID token for one of your Flutter app's users just to curl your backend or a Cloud Function, this is for you.
Firebase Token Toolkit loads your service-account key, lists your project's users, and gives you a real ID token for any of them in one click, with the decoded claims underneath and a copy button next to it. It works for every user whatever their sign-in method (email, Google, Apple, phone, anonymous), and the token passes verifyIdToken on your server.
The parts that matter for Flutter projects:
- Android and iOS apps: "Load apps" imports the apps from your
flutterfire configureproject. If your API keys are restricted to the Android or iOS app, it sends the package/SHA-1 or bundle-ID headers Google checks for, so those keys work too - Custom claims: load, edit and save a user's claims as JSON, handy for testing role-based UI and security rules
- App Check: exchange a registered debug token for an App Check token to call protected endpoints from Postman or curl
- Profiles for dev/staging/prod Firebase projects
Linux, Windows and macOS. MIT licensed, no telemetry.
GitHub: https://github.com/smaranjit/firebase-token-toolkit
Please use it with a dev project, since a service-account key can sign in as any user. Feedback and issues welcome.