Skip to content

Commit

Permalink
add test for expiresIn as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Sep 18, 2023
1 parent 909b18a commit 5a084b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/types.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5a084b4

Please sign in to comment.