@alteran/astro 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/jwt.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alteran/astro",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Astro integration for running a Cloudflare-hosted Bluesky PDS with Alteran.",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
package/src/lib/jwt.ts CHANGED
@@ -111,9 +111,9 @@ async function eddsaJwtSign(payload: any, env: Env): Promise<string> {
111
111
  // Decode base64 private key
112
112
  const keyBytes = b64urlDecode(keyData);
113
113
  const key = await crypto.subtle.importKey(
114
- 'raw',
114
+ 'pkcs8',
115
115
  keyBytes,
116
- { name: 'Ed25519', namedCurve: 'Ed25519' } as any,
116
+ { name: 'Ed25519' } as any,
117
117
  false,
118
118
  ['sign']
119
119
  );