π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Update copy
Neeraj Gupta1d3452a1f09c
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arbindex e4d1a07a50..58ad079a0b 100644--- a/auth/lib/l10n/arb/app_en.arb+++ b/auth/lib/l10n/arb/app_en.arb@@ -269,6 +269,7 @@"privacy": "Privacy","terms": "Terms","checkForUpdates": "Check for updates",+ "checkStatus": "Check status","downloadUpdate": "Download","criticalUpdateAvailable": "Critical update available","updateAvailable": "Update available",@@ -417,6 +418,9 @@"waitingForBrowserRequest": "Waiting for browser request...","waitingForVerification": "Waiting for verification...","passkey": "Passkey",+ "passKeyPendingVerification": "Verification is still pending",+ "loginSessionExpired" : "Session expired",+ "loginSessionExpiredDetails": "Your session has expired. Please login again.","developerSettingsWarning":"Are you sure that you want to modify Developer settings?","developerSettings": "Developer settings","serverEndpoint": "Server endpoint",diff --git a/auth/lib/ui/passkey_page.dart b/auth/lib/ui/passkey_page.dartindex d91ad6f2ea..b89fd52fbe 100644--- a/auth/lib/ui/passkey_page.dart+++ b/auth/lib/ui/passkey_page.dart@@ -58,9 +58,14 @@ class _PasskeyPageState extends State<PasskeyPage> {response = await UserService.instance.getTokenForPasskeySession(widget.sessionID);} on PassKeySessionNotVerifiedError catch (e) {- showToast(context, "Verification is still pending.");+ showToast(context, context.l10n.passKeyPendingVerification);} on PassKeySessionExpiredError catch (e) {- showToast(context, "Passkey session expired. Please try again.");+ await showErrorDialog(+ context,+ context.l10n.loginSessionExpired,+ context.l10n.loginSessionExpiredDetails,+ );+ Navigator.of(context).pop();return;} catch (e, s) {_logger.severe("failed to check status", e, s);@@ -150,8 +155,8 @@ class _PasskeyPageState extends State<PasskeyPage> {),const SizedBox(height: 16),ButtonWidget(- buttonType: ButtonType.neutral,- labelText: context.l10n.checkForUpdates,+ buttonType: ButtonType.secondary,+ labelText: context.l10n.checkStatus,onTap: checkStatus,shouldSurfaceExecutionStates: true,),