Skip to content

Commit 3573478

Browse files
committed
Change error message in key is unknown
1 parent 592650a commit 3573478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JwtHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class JwtHandler {
112112
if (this.privkeyResolver) {
113113
const signingKey = await this.privkeyResolver(keyId)
114114
if (!signingKey) {
115-
throw new UnknownKeyIdError("Unknown key id")
115+
throw new UnknownKeyIdError(keyId)
116116
}
117117
this.debug("priv key found")
118118
return this.jwtSignAsync(tokenBody, signingKey, {algorithm: signingKey.alg, header: {kid: keyId}})

0 commit comments

Comments
 (0)