From 10fb106d31bf752e665ca0fc85cc148f9ba812a4 Mon Sep 17 00:00:00 2001 From: Richard Burkhardt Date: Tue, 5 Nov 2024 14:34:48 +0100 Subject: [PATCH] format --- lib/src/authentication/scram_authentication.dart | 4 +++- test/authentication/scram_authentication_test.dart | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/src/authentication/scram_authentication.dart b/lib/src/authentication/scram_authentication.dart index 0888c46..b155cc8 100644 --- a/lib/src/authentication/scram_authentication.dart +++ b/lib/src/authentication/scram_authentication.dart @@ -35,7 +35,9 @@ class ScramAuthentication extends AbstractAuthentication { Future get clientKey { if (_clientKey != null) { - return Future.sync(() => _clientKey!,); + return Future.sync( + () => _clientKey!, + ); } else { return _firstClientKeyCompleter.future; } diff --git a/test/authentication/scram_authentication_test.dart b/test/authentication/scram_authentication_test.dart index 8c8495e..e0cff0a 100644 --- a/test/authentication/scram_authentication_test.dart +++ b/test/authentication/scram_authentication_test.dart @@ -95,8 +95,8 @@ void main() { }); test('reuse client key for authentication', () async { final authMethod = ScramAuthentication(secret); - var authenticateSignature = authMethod - .createSignature(user, helloNonce, challengeExtraArgon2, authExtra); + var authenticateSignature = authMethod.createSignature( + user, helloNonce, challengeExtraArgon2, authExtra); var clientKey = await authMethod.clientKey; authenticateSignature = ScramAuthentication.fromClientKey(clientKey) .createSignature(user, helloNonce, challengeExtraArgon2, authExtra);