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

	onMount(() => {
		if (getToken()) {
			goto('/feed');
		} else {
			goto('/join');
		}
	});
</script>
