setCustomParameters method

GoogleAuthProvider setCustomParameters(
  1. Map<String, dynamic> customOAuthParameters
)

Sets the OAuth custom parameters to pass in a Google OAuth request for popup and redirect sign-in operations. Valid parameters include 'hd', 'hl', 'include_granted_scopes', 'login_hint' and 'prompt'. For a detailed list, check the Google documentation. Reserved required OAuth 2.0 parameters such as 'client_id', 'redirect_uri', 'scope', 'response_type' and 'state' are not allowed and ignored.

Implementation

GoogleAuthProvider setCustomParameters(
        Map<String, dynamic> customOAuthParameters) =>
    GoogleAuthProvider.fromJsObject(
        jsObject.setCustomParameters(jsify(customOAuthParameters)));