getGoogleServicePayload function
These will come from our server
Implementation
ServiceCredentialPayload? getGoogleServicePayload() {
ServiceCredential? credential = _getServiceCredential(OAuthService.google);
if (credential != null) {
bool offline = credential.config?['offline'] == true;
return ServiceCredentialPayload(
credential: credential,
authorizationURL:
"https://accounts.google.com/o/oauth2/v2/auth${offline ? '?access_type=offline&prompt=consent' : ''}",
tokenURL: "https://oauth2.googleapis.com/token");
}
return null;
}