OAuth
This commit is contained in:
parent
6afcbbfec8
commit
a26564641f
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue