diff --git a/src/routes/auth/magic-url/+page.svelte b/src/routes/auth/magic-url/+page.svelte index b0ea4e96dd..828d59e719 100644 --- a/src/routes/auth/magic-url/+page.svelte +++ b/src/routes/auth/magic-url/+page.svelte @@ -2,21 +2,11 @@ import { goto } from '$app/navigation'; import { page } from '$app/stores'; import { Heading } from '$lib/components'; - import { Account, Client } from '@appwrite.io/console'; import { onMount } from 'svelte'; - const client = new Client(); - const account = new Account(client); - onMount(async () => { const projectId = $page.url.searchParams.get('project'); - client.setEndpoint(`${$page.url.origin}/v1`).setProject(projectId); - - const userId = $page.url.searchParams.get('userId'); - const secret = $page.url.searchParams.get('secret'); - - await account.updateMagicURLSession(userId, secret); - await goto(`appwrite-callback-${projectId}://${$page.url.search}`); + await goto(`appwrite-callback-auth-${projectId}://appwrite.io/magic-url${$page.url.search}`); });