Просмотр исходного кода

move to portfolio if already authenticated

Daniel Bohry 9 месяцев назад
Родитель
Сommit
e22ea17ccd
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/routes/login/+page.svelte

+ 1 - 0
src/routes/login/+page.svelte

@@ -18,6 +18,7 @@
 			const storedAuth = localStorage.getItem('authentication');
 			if (storedAuth) {
 				authentication.set(JSON.parse(storedAuth));
+				goto("/portfolio");
 			}
 		} catch (error) {
 			console.error('Error parsing stored auth:', error);