getActiveTokens method

Map<String, String> getActiveTokens()

Implementation

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