Correctly display user with pfp if available
This commit is contained in:
@ -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()
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user