Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
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
Next Next commit
Pass the client id to the platform interface.
The param exists in the platform interface but there was no way to pass
anything to clientId through the external interface.
  • Loading branch information
chingjun committed Dec 17, 2019
commit 6b5553a0266da6d2b675ffccc899251c62cb4ac9
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class GoogleSignIn {
this.signInOption = SignInOption.standard,
this.scopes = const <String>[],
this.hostedDomain,
this.clientId,
});

/// Factory for creating default sign in user experience.
Expand Down Expand Up @@ -207,6 +208,9 @@ class GoogleSignIn {
/// Domain to restrict sign-in to.
final String hostedDomain;

/// Client ID being used to connect to google sign-in. Only supported on web.
final String clientId;

StreamController<GoogleSignInAccount> _currentUserController =
StreamController<GoogleSignInAccount>.broadcast();

Expand Down Expand Up @@ -240,6 +244,7 @@ class GoogleSignIn {
signInOption: signInOption,
scopes: scopes,
hostedDomain: hostedDomain,
clientId: clientId,
)..catchError((dynamic _) {
// Invalidate initialization if it errors out.
_initialization = null;
Expand Down