GoogleApi constructor
GoogleApi(})
Implementation
GoogleApi(String identifier, String clientId, String redirectUrl,
{String clientSecret = "native",
List<String>? scopes,
http.Client? client,
Converter? converter,
AuthStorage? authStorage})
: super.fromIdAndSecret(
identifier, _cleanseClientId(clientId), clientSecret,
client: client,
scopes: scopes,
converter: converter,
authStorage: authStorage) {
this.tokenUrl = "https://accounts.google.com/o/oauth2/token";
this.authorizationUrl = "https://accounts.google.com/o/oauth2/auth";
this.redirectUrl = redirectUrl;
this.scopes = scopes ??
[
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile"
];
}