getActiveTokens method
Implementation
Map<String, String> getActiveTokens() {
final activeTokens = <String, String>{};
_tokens.forEach((userId, tokenInfo) {
if (tokenInfo.isValid) {
activeTokens[userId] = tokenInfo.token;
}
});
return activeTokens;
}