[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-cloudflare-statusphere.
statusphere.atmo.tools
atproto
cloudflare-workers
oauth
svelte
305 B
8 lines
1import { json } from '@sveltejs/kit';
2import { createOAuthClient } from '$lib/atproto/server/oauth';
3import type { RequestHandler } from './$types';
4
5export const GET: RequestHandler = async ({ platform }) => {
6 const oauth = createOAuthClient(platform?.env);
7 return json(oauth.jwks ?? { keys: [] });
8};