[auth] Remove double authentication for passkey

This commit is contained in:
Neeraj Gupta
2024-09-26 11:09:28 +05:30
parent 08765ccd39
commit 00c9572b43

View File

@@ -102,16 +102,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
trailingIcon: Icons.chevron_right_outlined,
trailingIconIsMuted: true,
onTap: () async {
final bool hasAuthenticated = await LocalAuthenticationService
.instance
.requestLocalAuthentication(
context,
context.l10n.authToViewPasskey,
);
await PlatformUtil.refocusWindows();
if (hasAuthenticated) {
await onPasskeyClick(context);
}
await onPasskeyClick(context);
},
),
sectionOptionSpacing,