@@ -15,7 +15,7 @@ export 'interop/auth_interop.dart'
15
15
show
16
16
ActionCodeInfo,
17
17
ActionCodeEmail,
18
- AuthCredential ,
18
+ OAuthCredential ,
19
19
ActionCodeSettings,
20
20
IosSettings,
21
21
AndroidSettings,
@@ -107,7 +107,7 @@ class User extends UserInfo<firebase_interop.UserJsImpl> {
107
107
108
108
/// Links the user account with the given credentials, and returns any
109
109
/// available additional user information, such as user name.
110
- Future <UserCredential > linkWithCredential (AuthCredential credential) =>
110
+ Future <UserCredential > linkWithCredential (OAuthCredential credential) =>
111
111
handleThenable (jsObject.linkWithCredential (credential))
112
112
.then ((u) => UserCredential .fromJsObject (u));
113
113
@@ -136,7 +136,7 @@ class User extends UserInfo<firebase_interop.UserJsImpl> {
136
136
/// Re-authenticates a user using a fresh credential, and returns any
137
137
/// available additional user information, such as user name.
138
138
Future <UserCredential > reauthenticateWithCredential (
139
- AuthCredential credential) =>
139
+ OAuthCredential credential) =>
140
140
handleThenable (jsObject.reauthenticateWithCredential (credential))
141
141
.then ((o) => UserCredential .fromJsObject (o));
142
142
@@ -202,7 +202,7 @@ class User extends UserInfo<firebase_interop.UserJsImpl> {
202
202
handleThenable (jsObject.updatePassword (newPassword));
203
203
204
204
/// Updates the user's phone number.
205
- Future updatePhoneNumber (AuthCredential phoneCredential) =>
205
+ Future updatePhoneNumber (OAuthCredential phoneCredential) =>
206
206
handleThenable (jsObject.updatePhoneNumber (phoneCredential));
207
207
208
208
/// Updates a user's [profile] data.
@@ -416,7 +416,7 @@ class Auth extends JsObjectWrapper<AuthJsImpl> {
416
416
417
417
/// Asynchronously signs in with the given credentials, and returns any
418
418
/// available additional user information, such as user name.
419
- Future <UserCredential > signInWithCredential (AuthCredential credential) =>
419
+ Future <UserCredential > signInWithCredential (OAuthCredential credential) =>
420
420
handleThenable (jsObject.signInWithCredential (credential))
421
421
.then ((u) => UserCredential .fromJsObject (u));
422
422
@@ -534,7 +534,7 @@ class EmailAuthProvider extends AuthProvider<EmailAuthProviderJsImpl> {
534
534
: super .fromJsObject (jsObject);
535
535
536
536
/// Creates a credential for e-mail.
537
- static AuthCredential credential (String email, String password) =>
537
+ static OAuthCredential credential (String email, String password) =>
538
538
EmailAuthProviderJsImpl .credential (email, password);
539
539
}
540
540
@@ -570,7 +570,7 @@ class FacebookAuthProvider extends AuthProvider<FacebookAuthProviderJsImpl> {
570
570
jsObject.setCustomParameters (jsify (customOAuthParameters)));
571
571
572
572
/// Creates a credential for Facebook.
573
- static AuthCredential credential (String token) =>
573
+ static OAuthCredential credential (String token) =>
574
574
FacebookAuthProviderJsImpl .credential (token);
575
575
}
576
576
@@ -606,7 +606,7 @@ class GithubAuthProvider extends AuthProvider<GithubAuthProviderJsImpl> {
606
606
jsObject.setCustomParameters (jsify (customOAuthParameters)));
607
607
608
608
/// Creates a credential for GitHub.
609
- static AuthCredential credential (String token) =>
609
+ static OAuthCredential credential (String token) =>
610
610
GithubAuthProviderJsImpl .credential (token);
611
611
}
612
612
@@ -644,7 +644,7 @@ class GoogleAuthProvider extends AuthProvider<GoogleAuthProviderJsImpl> {
644
644
645
645
/// Creates a credential for Google.
646
646
/// At least one of [idToken] and [accessToken] is required.
647
- static AuthCredential credential ([String idToken, String accessToken]) =>
647
+ static OAuthCredential credential ([String idToken, String accessToken]) =>
648
648
GoogleAuthProviderJsImpl .credential (idToken, accessToken);
649
649
}
650
650
@@ -676,7 +676,7 @@ class OAuthProvider extends AuthProvider<OAuthProviderJsImpl> {
676
676
677
677
/// Creates a credential for Google.
678
678
/// At least one of [idToken] and [accessToken] is required.
679
- AuthCredential credential ([String idToken, String accessToken]) =>
679
+ OAuthCredential credential ([String idToken, String accessToken]) =>
680
680
jsObject.credential (idToken, accessToken);
681
681
}
682
682
@@ -705,7 +705,7 @@ class TwitterAuthProvider extends AuthProvider<TwitterAuthProviderJsImpl> {
705
705
jsObject.setCustomParameters (jsify (customOAuthParameters)));
706
706
707
707
/// Creates a credential for Twitter.
708
- static AuthCredential credential (String token, String secret) =>
708
+ static OAuthCredential credential (String token, String secret) =>
709
709
TwitterAuthProviderJsImpl .credential (token, secret);
710
710
}
711
711
@@ -740,7 +740,7 @@ class PhoneAuthProvider extends AuthProvider<PhoneAuthProviderJsImpl> {
740
740
/// Creates a phone auth credential given the verification ID
741
741
/// from [verifyPhoneNumber] and the [verificationCode] that was sent to the
742
742
/// user's mobile device.
743
- static AuthCredential credential (
743
+ static OAuthCredential credential (
744
744
String verificationId, String verificationCode) =>
745
745
PhoneAuthProviderJsImpl .credential (verificationId, verificationCode);
746
746
}
@@ -836,7 +836,7 @@ class ConfirmationResult extends JsObjectWrapper<ConfirmationResultJsImpl> {
836
836
.then ((u) => UserCredential .fromJsObject (u));
837
837
}
838
838
839
- /// A structure containing a [User] , an [AuthCredential ] and [operationType] .
839
+ /// A structure containing a [User] , an [OAuthCredential ] and [operationType] .
840
840
/// operationType could be 'signIn' for a sign-in operation, 'link' for a
841
841
/// linking operation and 'reauthenticate' for a reauthentication operation.
842
842
///
@@ -846,7 +846,7 @@ class UserCredential extends JsObjectWrapper<UserCredentialJsImpl> {
846
846
User get user => User .getInstance (jsObject.user);
847
847
848
848
/// Returns the auth credential.
849
- AuthCredential get credential => jsObject.credential;
849
+ OAuthCredential get credential => jsObject.credential;
850
850
851
851
/// Returns the operation type.
852
852
String get operationType => jsObject.operationType;
0 commit comments