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')