Skip to content

Commit cc946c9

Browse files
[firebase_auth] Fix README.md snippet
2 parents 8fe253b + 82ff24c commit cc946c9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/firebase_auth/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.14.0+4
2+
3+
* Fixed "Register a user" example code snippet in README.md.
4+
15
## 0.14.0+3
26

37
* Update documentation to reflect new repository location.

packages/firebase_auth/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ _handleSignIn()
8888
### Register a user
8989

9090
```dart
91-
final FirebaseUser user = await _auth.createUserWithEmailAndPassword(
91+
final FirebaseUser user = (await _auth.createUserWithEmailAndPassword(
9292
email: 'an email',
9393
password: 'a password',
94-
);
94+
))
95+
.user;
9596
```
9697

9798
### Supported Firebase authentication methods

packages/firebase_auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS
44
like Google, Facebook and Twitter.
55
author: Flutter Team <flutter-dev@googlegroups.com>
66
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth
7-
version: 0.14.0+3
7+
version: 0.14.0+4
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)