Skip to content

Commit dda27a8

Browse files
committed
Undo auto-formatting
1 parent 515172e commit dda27a8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

packages/passkeys/passkeys_web/lib/passkeys_web.dart

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class PasskeysWeb extends PasskeysPlatform {
2323
final _ = window['PasskeyAuthenticator'];
2424
} catch (_) {
2525
debugPrint(
26-
'Error: Passkeys Web SDK not loaded. Please include the Passkeys Web SDK (bundle.js) in your HTML file. You can find it on https://github.com/corbado/flutter-passkeys/releases/download/2.4.0/bundle.js',
27-
);
26+
'Error: Passkeys Web SDK not loaded. Please include the Passkeys Web SDK (bundle.js) in your HTML file. You can find it on https://github.com/corbado/flutter-passkeys/releases/download/2.4.0/bundle.js');
2827
// We need to close the window to prevent the app from running afterwards thus causing runtime errors
2928
// This is a workaround for the fact that we cannot throw an exception in the web platform
3029
// because it will not be caught by the Flutter framework
@@ -50,9 +49,8 @@ class PasskeysWeb extends PasskeysPlatform {
5049

5150
try {
5251
final serializedRequest = jsonEncode(r.toJson());
53-
final response = await authenticatorRegister(
54-
serializedRequest.toJS,
55-
).toDart;
52+
final response =
53+
await authenticatorRegister(serializedRequest.toJS).toDart;
5654
final decodedResponse =
5755
jsonDecode(response.toDart) as Map<String, dynamic>;
5856
final typedResponse = PasskeySignUpResponse.fromJson(decodedResponse);
@@ -72,8 +70,7 @@ class PasskeysWeb extends PasskeysPlatform {
7270

7371
@override
7472
Future<AuthenticateResponseType> authenticate(
75-
AuthenticateRequestType request,
76-
) async {
73+
AuthenticateRequestType request) async {
7774
final r = PasskeyLoginRequest.fromPlatformType(
7875
request.relyingPartyId,
7976
request.challenge,
@@ -126,9 +123,8 @@ class PasskeysWeb extends PasskeysPlatform {
126123

127124
return AvailabilityTypeWeb(
128125
hasPasskeySupport: passkeySupport,
129-
isUserVerifyingPlatformAuthenticatorAvailable: v1.isUndefinedOrNull
130-
? null
131-
: v1!.toDart,
126+
isUserVerifyingPlatformAuthenticatorAvailable:
127+
v1.isUndefinedOrNull ? null : v1!.toDart,
132128
isConditionalMediationAvailable: v2.isUndefinedOrNull ? null : v2!.toDart,
133129
isNative: false,
134130
);

0 commit comments

Comments
 (0)