From 2a54373496c4ae650e58f7e2ab0b0160b91d6e7d Mon Sep 17 00:00:00 2001 From: Eric Stern Date: Fri, 1 Mar 2024 17:44:02 -0800 Subject: [PATCH] adjust example --- examples/getChallenge.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/getChallenge.php b/examples/getChallenge.php index 357bc14..3d1ef21 100644 --- a/examples/getChallenge.php +++ b/examples/getChallenge.php @@ -2,11 +2,14 @@ require __DIR__ . '/vendor/autoload.php'; +use Firehed\WebAuthn\ExpiringChallenge; + session_start(); // Generate challenge $challengeManager = getChallengeManager(); -$challenge = $challengeManager->createChallenge(); +$challenge = ExpiringChallenge::withLifetime(300); +$challengeManager->manageChallenge($challenge); // Send to user header('Content-type: application/json');