<script lang="ts">
	import { onMount } from 'svelte';
	import { goto } from '$app/navigation';

	onMount(() => {
		// This page shouldn't render - the backend handles the callback
		// and redirects. If we land here, something went wrong.
		goto('/login?error=oauth_failed');
	});
</script>

<div class="min-h-screen flex items-center justify-center">
	<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"></div>
</div>
