@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.
- package/package.json +1 -1
- package/src/lib/jwt.ts +2 -2
package/package.json
CHANGED
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
|
-
'
|
|
114
|
+
'pkcs8',
|
|
115
115
|
keyBytes,
|
|
116
|
-
{ name: 'Ed25519'
|
|
116
|
+
{ name: 'Ed25519' } as any,
|
|
117
117
|
false,
|
|
118
118
|
['sign']
|
|
119
119
|
);
|