This commit is contained in:
Hillel Coren 2021-03-22 00:06:45 +02:00
parent 6afcbbfec8
commit a26564641f
1 changed files with 2 additions and 3 deletions

View File

@ -48,9 +48,8 @@ class GoogleOAuth {
static Future<bool> grantOfflineAccess(
Function(String, String, String) callback) async {
var getScope = await _googleSignIn
.requestScopes(['https://www.googleapis.com/auth/gmail.send']);
print('## GET SCOPE: $getScope');
//final getScope = await _googleSignIn.requestScopes(['https://www.googleapis.com/auth/gmail.send']);
//print('## GET SCOPE: $getScope');
var account = await _googleSignIn.grantOfflineAccess();
if (account != null) {
account.authentication.then((GoogleSignInAuthentication value) {