calculateExpiry static method

int calculateExpiry(
  1. int offset
)

Implementation

static int calculateExpiry(int offset) {
  return DateTime.now().toUtc().millisecondsSinceEpoch ~/ 1000 + offset;
}