From 5a084b419e5357070031ecd4c1962d742cb609d9 Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:03:35 +0300 Subject: [PATCH] add test for expiresIn as a string --- test/types.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/types.spec.ts b/test/types.spec.ts index 9de30fc..03af010 100644 --- a/test/types.spec.ts +++ b/test/types.spec.ts @@ -31,6 +31,13 @@ createSigner({ } })({ key: 1 }).then(console.log, console.log) +// expiresIn as a string +createSigner({ + expiresIn: '10min', + key: Buffer.from('KEY'), + algorithm: 'RS256' +}) + // Decoding const decoder = createDecoder({ checkTyp: 'true' }) decoder('FOO')