Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Oct 21, 2024
1 parent e09a6d8 commit 82845e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/eight-eyes-float.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@atproto/jwk-jose": patch
---

Explicit JOSE's importJWK() "alg" argument
Improve compatibility with runtimes relying on webcrypto (by explicit JOSE's importJWK() "alg" argument).
2 changes: 1 addition & 1 deletion .changeset/strong-mice-talk.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@atproto/jwk": patch
---

Allow unknown properties in JWT payload & headers
Allow (passthrough) unknown properties in JWT payload & headers
2 changes: 1 addition & 1 deletion packages/oauth/jwk-webcrypto/src/webcrypto-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class WebcryptoKey<
return true
}

get privateJwk(): J | undefined {
get privateJwk(): Readonly<J> | undefined {
if (super.isPrivate) return this.jwk
throw new Error('Private Webcrypto Key not exportable')
}
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth/jwk/src/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export abstract class Key<J extends Jwk = Jwk> {
return false
}

get privateJwk(): J | undefined {
get privateJwk(): Readonly<J> | undefined {
return this.isPrivate ? this.jwk : undefined
}

Expand Down

0 comments on commit 82845e6

Please sign in to comment.