@lit-protocol/vincent-sdk - v0.0.5
    Preparing search index...

    Function decode

    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!
    • This function uses the did-jwt library to decode a JWT string into its payload adding any extra Vincent fields

      Parameters

      • jwt: string

        The JWT string to decode

      Returns VincentJWT

      The decoded Vincent JWT fields