calculateClockDrift method

int calculateClockDrift()

Calculate computer's clock drift

Implementation

int calculateClockDrift() {
  final now = (DateTime.now().millisecondsSinceEpoch / 1000).floor();
  final iat = min(accessToken.getIssuedAt(), idToken.getIssuedAt());
  return (now - iat);
}