/** * Get TOTP Code * * @param string $secret * @return string * * @url GET totpcode/{secret} */ function totpCode($secret) { $totp = new TOTP(); $code = $totp->getCode($secret); return $code; }