boxtout icon indicating copy to clipboard operation
boxtout copied to clipboard

stacked_firebase_auth-2.19.2 build error

Open 7NT opened this issue 2 years ago • 1 comments

stacked_firebase_auth-2.19.2/lib/src/firebase_authentication_service.dart:45:25:
Error: A value of type 'Future<String?>?' can't be returned from a function with return type 'Future<String>?' because 'String?' is nullable and 'String' isn't.
 - 'Future' is from 'dart:async'.
    return firebaseAuth.currentUser?.getIdToken();

pubspec.yaml:

Firebase

firebase_core: ^2.14.0 firebase_auth: ^4.6.3 cloud_firestore: ^4.8.2

Authentication

stacked_firebase_auth: ^2.19.2

Stacked State Management

stacked: ^3.4.1 stacked_services: ^1.2.0

7NT avatar Jul 17 '23 22:07 7NT

Hi @7NT , this issue was already fixed, update your package to the latest version.

ferrarafer avatar Aug 08 '23 04:08 ferrarafer