diff --git a/packages/firebase_auth/CHANGELOG.md b/packages/firebase_auth/CHANGELOG.md index 4dfbd3df1d72..03df63e1796e 100644 --- a/packages/firebase_auth/CHANGELOG.md +++ b/packages/firebase_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.14.0+4 + +* Fixed "Register a user" example code snippet in README.md. + ## 0.14.0+3 * Update documentation to reflect new repository location. diff --git a/packages/firebase_auth/README.md b/packages/firebase_auth/README.md index 1bd04e452afa..a8b4098a3c41 100755 --- a/packages/firebase_auth/README.md +++ b/packages/firebase_auth/README.md @@ -88,10 +88,11 @@ _handleSignIn() ### Register a user ```dart -final FirebaseUser user = await _auth.createUserWithEmailAndPassword( +final FirebaseUser user = (await _auth.createUserWithEmailAndPassword( email: 'an email', password: 'a password', - ); + )) + .user; ``` ### Supported Firebase authentication methods diff --git a/packages/firebase_auth/pubspec.yaml b/packages/firebase_auth/pubspec.yaml index ea9bc63dfce9..90194aba4647 100755 --- a/packages/firebase_auth/pubspec.yaml +++ b/packages/firebase_auth/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS like Google, Facebook and Twitter. author: Flutter Team homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth -version: 0.14.0+3 +version: 0.14.0+4 flutter: plugin: