oauth2PkceServerConfig property
OAuth2PkceServerConfig
get
oauth2PkceServerConfig
OAuth2 PKCE server configuration for the web sign-in flow.
Used by GoogleIdpUtils.exchangeCodeForToken to exchange an authorization code received from the browser for Google access and ID tokens.
Implementation
OAuth2PkceServerConfig get oauth2PkceServerConfig => OAuth2PkceServerConfig(
tokenEndpointUrl: Uri.https('oauth2.googleapis.com', '/token'),
clientId: clientSecret.clientId,
clientSecret: clientSecret.clientSecret,
credentialsLocation: OAuth2CredentialsLocation.body,
parseTokenResponse: parseTokenResponse,
);