From 166c39794a615facfcf8ce3328c3101522603dfa Mon Sep 17 00:00:00 2001 From: NazgoooAtanasov <35624803+NazgoooAtanasov@users.noreply.github.com> Date: Sun, 22 Dec 2024 02:41:48 +0200 Subject: [PATCH] fix(sveltekit): adds the missing input field for `redirectTo` (#12315) Co-authored-by: Nico Domino --- .../frameworks-sveltekit/src/lib/components/SignIn.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frameworks-sveltekit/src/lib/components/SignIn.svelte b/packages/frameworks-sveltekit/src/lib/components/SignIn.svelte index 3026ee9950..01f07c7df6 100644 --- a/packages/frameworks-sveltekit/src/lib/components/SignIn.svelte +++ b/packages/frameworks-sveltekit/src/lib/components/SignIn.svelte @@ -16,6 +16,7 @@ : options?.redirectTo const redirect = options instanceof FormData ? options.get("redirect") : options?.redirectTo + const redirectTo = callbackUrl const authorizationParamsInputs = authorizationParams ? typeof authorizationParams === "string" && authorizationParams @@ -38,6 +39,9 @@ {#if redirect} {/if} + {#if redirectTo} + + {/if} {#if authorizationParamsInputs} {#each Object.entries(authorizationParamsInputs) as [key, value]}