constJWT=require('jsonwebtoken')const{ Cryper }=require('cryper')constcryper=newCryper({filepath: string,options: {algorithm: 'RS256',expiresIn: '30m'}})cryper.setKeys()// creates new pub and pri key in a folder in your projectconstpubkey=cryper.pubkey()consttoken=cryper.sign(payload)constresult=JWT.verify(accessToken,cryper.pubkey())