OAuth
This commit is contained in:
parent
6afcbbfec8
commit
a26564641f
|
|
@ -48,9 +48,8 @@ class GoogleOAuth {
|
||||||
|
|
||||||
static Future<bool> grantOfflineAccess(
|
static Future<bool> grantOfflineAccess(
|
||||||
Function(String, String, String) callback) async {
|
Function(String, String, String) callback) async {
|
||||||
var getScope = await _googleSignIn
|
//final getScope = await _googleSignIn.requestScopes(['https://www.googleapis.com/auth/gmail.send']);
|
||||||
.requestScopes(['https://www.googleapis.com/auth/gmail.send']);
|
//print('## GET SCOPE: $getScope');
|
||||||
print('## GET SCOPE: $getScope');
|
|
||||||
var account = await _googleSignIn.grantOfflineAccess();
|
var account = await _googleSignIn.grantOfflineAccess();
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
account.authentication.then((GoogleSignInAuthentication value) {
|
account.authentication.then((GoogleSignInAuthentication value) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue