mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 08:45:14 +00:00
fix: authorize page doesn't load
This commit is contained in:
@@ -13,21 +13,15 @@
|
|||||||
import { startAuthentication } from '@simplewebauthn/browser';
|
import { startAuthentication } from '@simplewebauthn/browser';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import type { PageData } from './$types';
|
import type { PageProps } from './$types';
|
||||||
import ClientProviderImages from './components/client-provider-images.svelte';
|
import ClientProviderImages from './components/client-provider-images.svelte';
|
||||||
|
|
||||||
const webauthnService = new WebAuthnService();
|
const webauthnService = new WebAuthnService();
|
||||||
const oidService = new OidcService();
|
const oidService = new OidcService();
|
||||||
|
|
||||||
let {
|
let { data }: PageProps = $props();
|
||||||
scope,
|
let { client, scope, callbackURL, nonce, codeChallenge, codeChallengeMethod, authorizeState } =
|
||||||
nonce,
|
data;
|
||||||
client,
|
|
||||||
authorizeState,
|
|
||||||
callbackURL,
|
|
||||||
codeChallenge,
|
|
||||||
codeChallengeMethod
|
|
||||||
}: PageData = $props();
|
|
||||||
|
|
||||||
let isLoading = $state(false);
|
let isLoading = $state(false);
|
||||||
let success = $state(false);
|
let success = $state(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user