Closed ksmithut closed 1 year ago
When trying to extract the footer information from a token that has no footer, the verify call returns a rejected promise.
3.1.0
v18.9.0
import { V4 } from 'paseto' const key = await V4.generateKey('public', { format: 'paserk' }) const token = await V4.sign({}, key.secretKey) // This next line fails const payload = await V4.verify(token, key.publicKey, { complete: true })
@ksmithut thank you for this report. v3.1.1 was released with a fix.
What happened?
When trying to extract the footer information from a token that has no footer, the verify call returns a rejected promise.
Version
3.1.0
Node.js Version
v18.9.0
Code to reproduce
Required