Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
konsultaner committed Nov 5, 2024
1 parent 5a8208a commit 10fb106
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/src/authentication/scram_authentication.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class ScramAuthentication extends AbstractAuthentication {

Future<Uint8List> get clientKey {
if (_clientKey != null) {
return Future<Uint8List>.sync(() => _clientKey!,);
return Future<Uint8List>.sync(
() => _clientKey!,
);
} else {
return _firstClientKeyCompleter.future;
}
Expand Down
4 changes: 2 additions & 2 deletions test/authentication/scram_authentication_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10fb106

Please sign in to comment.