• This adds the authentication session to each page It should be exported as 'load' in a top-level +layout.server.ts file so that SvelteKit can find it.

    Parameters

    • event: ServerLoadEvent<Partial<Record<string, string>>, Record<string, any>, null | string>

    Returns MaybePromise<void | Record<string, any>>