Skip to content

Commit 50174d2

Browse files
committed
style: minor formatting improvements
- Improved code readability - Adjusted spacing and line breaks
1 parent ad36b3e commit 50174d2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

lib/src/middlewares/authentication_middleware.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ Middleware requireAuthentication() {
119119
}
120120
// If user exists, proceed to the handler
121121
print('Authentication check passed for user: ${user.id}');
122-
return handler(context.provide<User>(() => user)); // Provide non-nullable User
122+
return handler(
123+
context.provide<User>(() => user),
124+
); // Provide non-nullable User
123125
};
124126
};
125127
}

lib/src/services/auth_service.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,16 @@ class AuthService {
216216
// Invalidate the token using the AuthTokenService
217217
await _authTokenService.invalidateToken(token);
218218
print(
219-
'[AuthService] Token invalidation logic executed for user $userId.',);
219+
'[AuthService] Token invalidation logic executed for user $userId.',
220+
);
220221
} on HtHttpException catch (_) {
221222
// Propagate known exceptions from the token service
222223
rethrow;
223224
} catch (e) {
224225
// Catch unexpected errors during token invalidation
225226
print(
226-
'[AuthService] Error during token invalidation for user $userId: $e',);
227+
'[AuthService] Error during token invalidation for user $userId: $e',
228+
);
227229
throw const OperationFailedException(
228230
'Failed server-side sign-out: Token invalidation failed.',
229231
);

test/src/services/jwt_auth_token_service_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ void main() {
2929
setUpAll(() {
3030
// Register fallback values for argument matchers
3131
registerFallbackValue(
32-
const User(id: 'fallback', isAnonymous: true, isAdmin: false),);
32+
const User(id: 'fallback', isAnonymous: true, isAdmin: false),
33+
);
3334
// Register fallback for DateTime if needed for blacklist mock
3435
registerFallbackValue(DateTime(2024));
3536
});

0 commit comments

Comments
 (0)