Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ final googleIdpConfig = GoogleIdpConfigFromPasswords(

### Lightweight Sign-In on the Flutter app

Lightweight sign-in is a feature that attempts to authenticate users previously logged in with Google automatically with minimal or no user interaction. When enabled, the Google authentication controller will try to sign in users seamlessly using platform-specific lightweight authentication methods. This feature is enabled by default, but can be disabled from the `GoogleSignInWidget` or `GoogleAuthController`.
Lightweight sign-in is a feature that attempts to authenticate users previously logged in with Google automatically with minimal or no user interaction. When enabled, the Google authentication controller will try to sign in users seamlessly using platform-specific lightweight authentication methods. This feature is disabled by default, but can be enabled from the `GoogleSignInWidget` or `GoogleAuthController`.

```dart
GoogleSignInWidget(
client: client,
attemptLightweightSignIn: false, // Disable lightweight sign-in
attemptLightweightSignIn: true, // Enable lightweight sign-in
onAuthenticated: () {
// User was automatically signed in
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ GoogleSignInWidget(
],

// Whether to attempt lightweight sign-in (One Tap, FedCM)
attemptLightweightSignIn: true,
attemptLightweightSignIn: false,

onAuthenticated: () {
// Do something when the user is authenticated.
Expand Down Expand Up @@ -75,7 +75,7 @@ final controller = GoogleAuthController(
onError: (error) {
// Handle errors
},
attemptLightweightSignIn: true,
attemptLightweightSignIn: false,
scopes: const [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ final googleIdpConfig = GoogleIdpConfigFromPasswords(

### Lightweight Sign-In on the Flutter app

Lightweight sign-in is a feature that attempts to authenticate users previously logged in with Google automatically with minimal or no user interaction. When enabled, the Google authentication controller will try to sign in users seamlessly using platform-specific lightweight authentication methods. This feature is enabled by default, but can be disabled from the `GoogleSignInWidget` or `GoogleAuthController`.
Lightweight sign-in is a feature that attempts to authenticate users previously logged in with Google automatically with minimal or no user interaction. When enabled, the Google authentication controller will try to sign in users seamlessly using platform-specific lightweight authentication methods. This feature is disabled by default, but can be enabled from the `GoogleSignInWidget` or `GoogleAuthController`.

```dart
GoogleSignInWidget(
client: client,
attemptLightweightSignIn: false, // Disable lightweight sign-in
attemptLightweightSignIn: true, // Enable lightweight sign-in
onAuthenticated: () {
// User was automatically signed in
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ GoogleSignInWidget(
],

// Whether to attempt lightweight sign-in (One Tap, FedCM)
attemptLightweightSignIn: true,
attemptLightweightSignIn: false,

onAuthenticated: () {
// Do something when the user is authenticated.
Expand Down Expand Up @@ -75,7 +75,7 @@ final controller = GoogleAuthController(
onError: (error) {
// Handle errors
},
attemptLightweightSignIn: true,
attemptLightweightSignIn: false,
scopes: const [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile',
Expand Down