You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
import{V4}from'paseto'constkey=awaitV4.generateKey('public',{format: 'paserk'})consttoken=awaitV4.sign({},key.secretKey)// This next line failsconstpayload=awaitV4.verify(token,key.publicKey,{complete: true})
Required
I have searched the issues tracker and discussions for similar topics and couldn't find anything related.
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
The text was updated successfully, but these errors were encountered: