Decodes a Vincent JWT in string form and returns an VincentJWT decoded object for your use
try { const decodedVincentJWT = decode(jwt); } catch(e) { // Handle malformed JWT string case } // You still need to verify the JWT! Copy
try { const decodedVincentJWT = decode(jwt); } catch(e) { // Handle malformed JWT string case } // You still need to verify the JWT!
This function uses the did-jwt library to decode a JWT string into its payload adding any extra Vincent fields
The JWT string to decode
The decoded Vincent JWT fields
Decodes a Vincent JWT in string form and returns an VincentJWT decoded object for your use
Example