fix(auth): await auth to prevent console.variables() from throwing

This commit is contained in:
Steven Nguyen committed 2024-05-16 11:11:58 -07:00
1 parent ce1ffb600f
commit 72f1563c83
1 file changed
+3 -1
+3 -1
View File
@@ -5,7 +5,9 @@ import { sdk } from '$lib/stores/sdk';
import { isCloud } from '$lib/system';
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = async ({ fetch, depends }) => {
export const load: LayoutLoad = async ({ fetch, depends, parent }) => {
await parent(); // ensure user is authenticated before proceeding
depends(Dependencies.RUNTIMES);
depends(Dependencies.CONSOLE_VARIABLES);