public function generateNewApiKey() : ? string {

		if ($this->confirmed) {
			$apiKey = bin2hex(random_bytes(64));
			$this->sessionManager->storeApiKey($apiKey);
			return $apiKey;
		} else {
			return null;
		}

	}