From 60bcd51e75c742ac092a6060a3882c8c253dbb5e Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Wed, 16 Dec 2020 15:30:10 +0100 Subject: [PATCH] docs: update docs for GetKeyFunction --- src/types.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types.d.ts b/src/types.d.ts index 6172b0a1..9c736378 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -71,6 +71,8 @@ export interface JWK { * Generic Interface for consuming operations dynamic key resolution. * No token components have been verified at the time of this function call. * + * If you cannot match a key suitable for the token, throw an error instead. + * * @param protectedHeader JWE or JWS Protected Header. * @param token The consumed JWE or JWS token. */