From c3a03db8b0f87cddc927481cfad2ccc391f98869 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Wed, 21 May 2025 23:07:47 +0200 Subject: [PATCH] fix: authorize page doesn't load --- frontend/src/routes/authorize/+page.svelte | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/src/routes/authorize/+page.svelte b/frontend/src/routes/authorize/+page.svelte index da2637ed..548a6c55 100644 --- a/frontend/src/routes/authorize/+page.svelte +++ b/frontend/src/routes/authorize/+page.svelte @@ -13,21 +13,15 @@ import { startAuthentication } from '@simplewebauthn/browser'; import { onMount } from 'svelte'; import { slide } from 'svelte/transition'; - import type { PageData } from './$types'; + import type { PageProps } from './$types'; import ClientProviderImages from './components/client-provider-images.svelte'; const webauthnService = new WebAuthnService(); const oidService = new OidcService(); - let { - scope, - nonce, - client, - authorizeState, - callbackURL, - codeChallenge, - codeChallengeMethod - }: PageData = $props(); + let { data }: PageProps = $props(); + let { client, scope, callbackURL, nonce, codeChallenge, codeChallengeMethod, authorizeState } = + data; let isLoading = $state(false); let success = $state(false);