Skip to content

Commit

Permalink
fix: redirect to dashboard if logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed Jul 31, 2023
1 parent ae8bde7 commit 59acec4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/web/src/routes/(auth)/auth/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
<script lang="ts">
import { Tab, TabGroup } from '@skeletonlabs/skeleton';
import Icon from '@iconify/svelte';
import { onMount } from 'svelte';
export let data;
let { supabase } = data;
$: ({ supabase } = data);
onMount(async () => {
if (data.session) {
window.location.href = '/dashboard';
}
});
let email: any;
let password: any;
Expand Down

0 comments on commit 59acec4

Please sign in to comment.