googleAccountDetailsValidation property
Validation function for Google account details.
This function should throw an exception if the account details do not match the requirements. If the function returns normally, the account is considered valid.
It can be used to enforce additional requirements on the Google account
details before allowing the user to sign in. These details will be
extracted using the people API and may not be available if the user has
not granted the app access to their profile or if the user is part of an
organization that has restricted access to the profile information. Note
that even verifiedEmail is not guaranteed to be true (e.g. accounts
created from developers.google.com).
To avoid blocking real users (from privacy-restricted workspaces, accounts without avatars, unverified secondary emails) from signing in, adjust your validation function with care.
Implementation
final GoogleAccountDetailsValidation googleAccountDetailsValidation;