Separate Google account sign-in from calendar authorization
This commit is contained in:
parent
2302fe1449
commit
94f09a3328
@ -156,8 +156,9 @@ class _AccountsPageState extends State<AccountsPage> {
|
||||
await _ensureGoogleInitialized();
|
||||
initialized = true;
|
||||
}
|
||||
final account = await googleSignIn.authenticate(scopeHint: calendarScopes);
|
||||
final account = await googleSignIn.authenticate();
|
||||
signedInAccount = account;
|
||||
await account.authorizationClient.authorizeScopes(calendarScopes);
|
||||
await _loadGoogleCalendars(promptIfNecessary: true);
|
||||
} catch (error) {
|
||||
if (!mounted) return;
|
||||
@ -181,6 +182,11 @@ class _AccountsPageState extends State<AccountsPage> {
|
||||
'A bel\u00e9p\u00e9si ablakos m\u0171k\u00f6d\u00e9shez tedd be az android/app/google-services.json f\u00e1jlt, '
|
||||
'amely tartalmaz Web application OAuth client ID-t, majd buildeld \u00fajra az APK-t.';
|
||||
}
|
||||
if (raw.contains('Account reauth failed')) {
|
||||
return '$prefix: a Google fi\u00f3k \u00fajrahiteles\u00edt\u00e9se nem siker\u00fclt. '
|
||||
'Pr\u00f3b\u00e1ld meg a tableten a Google fi\u00f3kot friss\u00edteni/bejelentkeztetni a Be\u00e1ll\u00edt\u00e1sokban, '
|
||||
'vagy t\u00f6r\u00f6ld az app Google hozz\u00e1f\u00e9r\u00e9s\u00e9t, majd jelentkezz be \u00fajra.';
|
||||
}
|
||||
return '$prefix: $raw';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user