| 340 | } |
| 341 | |
| 342 | std::shared_ptr<EventSub> TwitchToken::GetEventSub() |
| 343 | { |
| 344 | if (!_eventSub) { |
| 345 | _eventSub = std::make_shared<EventSub>(); |
| 346 | _eventSub->EnableTimestampValidation( |
| 347 | _validateEventSubTimestamps); |
| 348 | } |
| 349 | return _eventSub; |
| 350 | } |
| 351 | |
| 352 | bool TwitchToken::IsValid(bool forceUpdate) const |
| 353 | { |
no test coverage detected