flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [firebase_app_check] `.getToken()` should return a `AppCheckToken` class

Open nilsreichardt opened this issue 3 years ago • 0 comments

Currently, the await FirebaseAppCheck.instance.getToken() method has a String? return type. But should return a AppCheckToken class like the native SDKs does. The reason for this is that this class has also attributes like expireTimeMillis: https://firebase.google.com/docs/reference/js/app-check.appchecktoken#appchecktokenexpiretimemillis.

This would be require a breaking change.

nilsreichardt avatar Jun 26 '22 23:06 nilsreichardt