Verifying an ECDSA-signed JWT using jsrsasign
Table of contents
It's as easy as:
javascript
import jsrsasign from "jrsasign";const publicKey = jsrsasign.KEYUTIL.getKey(publicKeyStr);const isVerified = jsrsasign.KJUR.jws.JWS.verifyJWT(jwt, publicKey, {alg: ["ES256", "ES384", "ES512"],});