finally buildable without jwt
This commit is contained in:
parent
c22a7f0e99
commit
5cf21c7d75
@ -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(),
|
||||||
}
|
}
|
||||||
|
@ -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(),
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user