File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.0.14
2
+
3
+ * Login at web should work
4
+
1
5
## 0.0.13
2
6
3
7
* Improvement: CloudFile with getters fileId, fileName and mimeType
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'package:logger/logger.dart';
8
8
/// Root logger.
9
9
final Logger log = Logger (
10
10
printer: MyPrinter ('FL_CLOUD_STORAGE' ),
11
- level: Level .trace ,
11
+ level: Level .verbose ,
12
12
);
13
13
14
14
/// This class is the entrypoint for the fl_cloud_storage package. It is a
@@ -202,4 +202,4 @@ class CloudStorageService {
202
202
}
203
203
return null ;
204
204
}
205
- }
205
+ }
Original file line number Diff line number Diff line change @@ -107,13 +107,16 @@ class GoogleDriveService
107
107
final GoogleSignInAccount ? account = await _getGoogleUser (googleSignIn);
108
108
109
109
final isAuthorizedForMobile = ! kIsWeb && account != null ;
110
- final isAuthorizedForWeb = kIsWeb && account != null && await googleSignIn.canAccessScopes (googleSignIn.scopes);
110
+ final isAuthorizedForWeb = kIsWeb &&
111
+ account != null &&
112
+ await googleSignIn.canAccessScopes (googleSignIn.scopes);
111
113
if (! isAuthorizedForMobile && ! isAuthorizedForWeb) {
112
114
throw Exception ('User is not authorized!' );
113
115
}
114
116
115
117
final GoogleSignInAuthentication googleAuth = await account.authentication;
116
- _authenticationTokens = AuthenticationTokens (accessToken: googleAuth.accessToken, idToken: googleAuth.idToken);
118
+ _authenticationTokens = AuthenticationTokens (
119
+ accessToken: googleAuth.accessToken, idToken: googleAuth.idToken);
117
120
118
121
// set auth headers for the drive api
119
122
final Map <String , String > authHeaders = await account.authHeaders;
@@ -407,4 +410,4 @@ class GoogleDriveService
407
410
? GoogleDriveFolder (folder: res.files! [0 ])
408
411
: null ;
409
412
}
410
- }
413
+ }
You can’t perform that action at this time.
0 commit comments