finally buildable without jwt

This commit is contained in:
Alexander Bocken 2024-02-19 23:38:00 +01:00
parent c22a7f0e99
commit 5cf21c7d75
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
3 changed files with 7 additions and 10 deletions

View File

@ -1,8 +1,6 @@
import { get_username } from '$lib/js/get_username';; import type { PageServerLoad } from "./$types"
import type { Actions, PageServerLoad } from "./$types"
import { error } from "@sveltejs/kit"
export const load = (async ({cookies, locals}) => { export const load : PageServerLoad = (async ({locals}) => {
return { return {
session: await locals.auth(), session: await locals.auth(),
} }

View File

@ -1,7 +1,7 @@
import { get_username } from '$lib/js/get_username';; import type { PageServerLoad } from "./$types"
import type { Actions, PageServerLoad } from "./$types"
import { error } from "@sveltejs/kit"
export const load = (async ({cookies}) => { export const load : PageServerLoad = (async ({locals}) => {
return { user: await get_username(cookies) } return {
session: await locals.auth(),
}
}); });

View File

@ -1,5 +1,4 @@
import type { PageServerLoad } from "./$types" import type { PageServerLoad } from "./$types"
import { error } from "@sveltejs/kit"
export const load : PageServerLoad = async ({locals}) => { export const load : PageServerLoad = async ({locals}) => {
return { return {