ATlast — you'll never need to find your favorites on another platform again. Find your favs in the ATmosphere.
atproto
1import { Handler } from "@netlify/functions";
2import { CONFIG } from "./core/config/constants";
3
4const PUBLIC_JWK = {
5 kty: "EC",
6 x: "3sVbr4xwN7UtmG1L19vL0x9iN-FRcl7p-Wja_xPbhhk",
7 y: "Y1XKDaAyDwijp8aEIGHmO46huKjajSQH2cbfpWaWpQ4",
8 crv: "P-256",
9 kid: CONFIG.OAUTH_KEY_ID,
10 use: "sig",
11 alg: "ES256",
12};
13export const handler: Handler = async () => {
14 return {
15 statusCode: 200,
16 headers: {
17 "Content-Type": "application/json",
18 "Access-Control-Allow-Origin": "*",
19 "Cache-Control": "public, max-age=3600",
20 },
21 body: JSON.stringify({ keys: [PUBLIC_JWK] }),
22 };
23};