11import 'dart:async' ;
22
3- import 'package:meta/meta.dart' ;
43import 'package:ht_shared/ht_shared.dart' ; // Added for OperationFailedException
4+ import 'package:meta/meta.dart' ;
55
66/// {@template token_blacklist_service}
77/// Defines the interface for a service that manages a blacklist of
@@ -68,7 +68,7 @@ class InMemoryTokenBlacklistService implements TokenBlacklistService {
6868 );
6969 }
7070
71- // Stores jti -> expiry DateTime
71+ /// Stores jti -> expiry DateTime
7272 @visibleForTesting
7373 final Map <String , DateTime > blacklistStore = {};
7474 Timer ? _cleanupTimer;
@@ -95,7 +95,7 @@ class InMemoryTokenBlacklistService implements TokenBlacklistService {
9595 '[InMemoryTokenBlacklistService] Error adding jti $jti to store: $e ' ,
9696 );
9797 throw OperationFailedException (
98- 'Failed to add token to blacklist: ${ e . toString ()} ' ,
98+ 'Failed to add token to blacklist: $e ' ,
9999 );
100100 }
101101 }
@@ -128,7 +128,7 @@ class InMemoryTokenBlacklistService implements TokenBlacklistService {
128128 '[InMemoryTokenBlacklistService] Error checking blacklist for jti $jti : $e ' ,
129129 );
130130 throw OperationFailedException (
131- 'Failed to check token blacklist: ${ e . toString ()} ' ,
131+ 'Failed to check token blacklist: $e ' ,
132132 );
133133 }
134134 }
0 commit comments