public function now() { return $this->at(time()); }
/** * Get the one time code for the otp instance * @param TOTP|null $totp * @return mixed */ public function getCode(TOTP $totp = null) { if ($totp !== null) { return $totp->now(); } else { return $this->totp->now(); } }