Skip to content

Commit f46946c

Browse files
authored
Add use parameter to JWKs (#162)
* add use parameter to jwks * Add use: sig to jwks.
1 parent 1b5525b commit f46946c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/sharp-knives-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openauthjs/openauth": patch
3+
---
4+
5+
Add use: sig to jwks.

packages/openauth/src/keys.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export async function signingKeys(storage: StorageAdapter): Promise<KeyPair[]> {
7171
const privateKey = await importPKCS8(value.privateKey, value.alg)
7272
const jwk = await exportJWK(publicKey)
7373
jwk.kid = value.id
74+
jwk.use = "sig"
7475
results.push({
7576
id: value.id,
7677
alg: signingAlg,

0 commit comments

Comments
 (0)