From 656d3e5f923a2f77b9a673b22adfa1f5ba44c938 Mon Sep 17 00:00:00 2001 From: Martin de Keijzer Date: Wed, 14 May 2025 11:56:43 +0200 Subject: [PATCH] Fix syntax error The calls to the stimulus controller now give an error when copied; `A mapping value must be followed by a comma. Unexpected token "name" of value "requestResultUrl" ("punctuation" expected with value ",") in` This commit fixes the error for both examples --- symfony-ux/integration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony-ux/integration.md b/symfony-ux/integration.md index 9ba15c4..ece8242 100644 --- a/symfony-ux/integration.md +++ b/symfony-ux/integration.md @@ -65,7 +65,7 @@ If you want to redirect the user to another page after the login succeeded, you ```twig {{ stimulus_controller('@web-auth/webauthn-stimulus', { - requestSuccessRedirectUri: path('app.dashboard') + requestSuccessRedirectUri: path('app.dashboard'), requestResultUrl: path('webauthn.controller.security.main.request.result'), requestOptionsUrl: path('webauthn.controller.security.main.request.options') } @@ -80,7 +80,7 @@ When authenticators are available on the device and the browser is aware of them {{ stimulus_controller('@web-auth/webauthn-stimulus', { useBrowserAutofill: true, - requestSuccessRedirectUri: path('app.dashboard') + requestSuccessRedirectUri: path('app.dashboard'), requestResultUrl: path('webauthn.controller.security.main.request.result'), requestOptionsUrl: path('webauthn.controller.security.main.request.options') }