Skip to content

Commit 8a4d51d

Browse files
committed
Add undefined | null types to PubkeyData
1 parent 96214d6 commit 8a4d51d

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
@@ -8,7 +8,7 @@ import {shim} from "util.promisify"
88
import {MissingKeyIdError} from "./MissingKeyIdError"
99
import {UnknownKeyIdError} from "./UnknownKeyIdError"
1010

11-
export type PubkeyData = { cert: string }
11+
export type PubkeyData = { cert: string } | undefined | null
1212
export type PrivkeyData = { key: string, passphrase: string, alg: string } | undefined | null
1313

1414
export type PubkeyResolver = (keyId: string) => PubkeyData | Promise<PubkeyData>

0 commit comments

Comments
 (0)