aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/settings/nostr/+page.server.ts
blob: b46223845ba58c9103d52fee440452d671588f6d (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,
};