aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/settings/nostr/+page.server.ts
blob: 1767ebafb153a4a109b80af2d3fcc2e8d20eca71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import updateUser from "$lib/settings";
import { auth, get } from "$lib/utils";

export const load = async ({ cookies }) => {
	const { challenge } = await get("/challenge");
	const apps = await get("/apps", auth(cookies));
	return { apps, challenge };
};

export const actions = {
	default: updateUser,
};