Explorar el Código

move to portfolio if already authenticated

Daniel Bohry hace 9 meses
padre
commit
e22ea17ccd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);