Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(firebase_auth): Removed duplicates; fixed typos; removed "unnecessary use of a null check" #16815

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions packages/firebase_auth/firebase_auth/lib/src/firebase_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class FirebaseAuth extends FirebasePluginPlatform {
/// [idTokenChanges] or [userChanges] to subscribe to updates.
User? get currentUser {
if (_delegate.currentUser != null) {
return User._(this, _delegate.currentUser!);
return User._(this, _delegate.currentUser);
}

return null;
Expand Down Expand Up @@ -220,11 +220,8 @@ class FirebaseAuth extends FirebasePluginPlatform {
/// - Thrown if the user is no longer authenticated since his refresh token
/// has been expired
/// - **network-request-failed**:
/// - Thrown if there was a network request error, for example the user don't
/// don't have internet connection
/// - **operation-not-allowed**:
/// - Thrown if email/password accounts are not enabled. Enable
/// email/password accounts in the Firebase Console, under the Auth tab.
/// - Thrown if there was a network request error, for example the user
/// doesn't have internet connection
Future<UserCredential> createUserWithEmailAndPassword({
required String email,
required String password,
Expand Down Expand Up @@ -498,7 +495,7 @@ class FirebaseAuth extends FirebasePluginPlatform {
/// verification code of the credential is not valid.
/// - **invalid-verification-id**:
/// - Thrown if the credential is a [PhoneAuthProvider.credential] and the
/// verification ID of the credential is not valid.id.
/// verification ID of the credential is not valid.
Future<UserCredential> signInWithCredential(AuthCredential credential) async {
try {
return UserCredential._(
Expand Down Expand Up @@ -570,12 +567,12 @@ class FirebaseAuth extends FirebasePluginPlatform {
/// - Thrown if the user is no longer authenticated since his refresh token
/// has been expired
/// - **network-request-failed**:
/// - Thrown if there was a network request error, for example the user don't
/// don't have internet connection
/// - Thrown if there was a network request error, for example the user
/// doesn't have internet connection
/// - **INVALID_LOGIN_CREDENTIALS** or **invalid-credential**:
/// - Thrown if the password is invalid for the given email, or the account
/// corresponding to the email does not have a password set.
/// depending on if you are using firebase emulator or not the code is
/// Depending on if you are using firebase emulator or not the code is
/// different
/// - **operation-not-allowed**:
/// - Thrown if email/password accounts are not enabled. Enable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,8 @@ abstract class FirebaseAuthPlatform extends PlatformInterface {
/// - Thrown if the user is no longer authenticated since his refresh token
/// has been expired
/// - **network-request-failed**:
/// - Thrown if there was a network request error, for example the user don't
/// don't have internet connection
/// - **operation-not-allowed**:
/// - Thrown if email/password accounts are not enabled. Enable
/// email/password accounts in the Firebase Console, under the Auth tab.
/// - Thrown if there was a network request error, for example the user
/// doesn't have internet connection
Future<UserCredentialPlatform> createUserWithEmailAndPassword(
String email,
String password,
Expand Down Expand Up @@ -476,7 +473,7 @@ abstract class FirebaseAuthPlatform extends PlatformInterface {
/// verification code of the credential is not valid.
/// - **invalid-verification-id**:
/// - Thrown if the credential is a [PhoneAuthProvider.credential] and the
/// verification ID of the credential is not valid.id.
/// verification ID of the credential is not valid.
Future<UserCredentialPlatform> signInWithCredential(
AuthCredential credential,
) async {
Expand Down Expand Up @@ -527,12 +524,12 @@ abstract class FirebaseAuthPlatform extends PlatformInterface {
/// - Thrown if the user is no longer authenticated since his refresh token
/// has been expired
/// - **network-request-failed**:
/// - Thrown if there was a network request error, for example the user don't
/// don't have internet connection
/// - Thrown if there was a network request error, for example the user
/// doesn't have internet connection
/// - **INVALID_LOGIN_CREDENTIALS** or **invalid-credential**:
/// - Thrown if the password is invalid for the given email, or the account
/// corresponding to the email does not have a password set.
/// depending on if you are using firebase emulator or not the code is
/// Depending on if you are using firebase emulator or not the code is
/// different
/// - **operation-not-allowed**:
/// - Thrown if email/password accounts are not enabled. Enable
Expand Down
Loading