This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[google_sign_in] add serverAuthCode to GoogleSignInAccount (#4180)
- Loading branch information
1 parent
5eec1e6
commit 7df7a8f
Showing
6 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ void main() { | |
"id": "8162538176523816253123", | ||
"photoUrl": "https://lh5.googleusercontent.com/photo.jpg", | ||
"displayName": "John Doe", | ||
"serverAuthCode": "789" | ||
}; | ||
|
||
const Map<String, dynamic> kDefaultResponses = <String, dynamic>{ | ||
|
@@ -350,7 +351,8 @@ void main() { | |
|
||
expect(auth.accessToken, '456'); | ||
expect(auth.idToken, '123'); | ||
expect(auth.serverAuthCode, '789'); | ||
// fix deprecated_member_use_from_same_package | ||
// expect(auth.serverAuthCode, '789'); | ||
expect( | ||
log, | ||
<Matcher>[ | ||
|
@@ -382,11 +384,11 @@ void main() { | |
|
||
group('GoogleSignIn with fake backend', () { | ||
const FakeUser kUserData = FakeUser( | ||
id: "8162538176523816253123", | ||
displayName: "John Doe", | ||
email: "[email protected]", | ||
photoUrl: "https://lh5.googleusercontent.com/photo.jpg", | ||
); | ||
id: "8162538176523816253123", | ||
displayName: "John Doe", | ||
email: "[email protected]", | ||
photoUrl: "https://lh5.googleusercontent.com/photo.jpg", | ||
serverAuthCode: '789'); | ||
|
||
late GoogleSignIn googleSignIn; | ||
|
||
|
@@ -411,6 +413,7 @@ void main() { | |
expect(user.email, equals(kUserData.email)); | ||
expect(user.id, equals(kUserData.id)); | ||
expect(user.photoUrl, equals(kUserData.photoUrl)); | ||
expect(user.serverAuthCode, equals(kUserData.serverAuthCode)); | ||
|
||
await googleSignIn.disconnect(); | ||
expect(googleSignIn.currentUser, isNull); | ||
|