Correctly display user with pfp if available

This commit is contained in:
2024-02-15 04:28:31 +01:00
parent 022d727394
commit e7944b9aa0
4 changed files with 23 additions and 16 deletions

View File

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