@welshare/sdk
    Preparing search index...

    Function verifyJWT

    • verifies a self signed jwt (ES256K) checks that the jwt is signed with key of the iss field checks that the exp field is in the future iss must be a did:xxx:

      Parameters

      • jwt: string

        string the jwt to verify

      Returns {
          error?: string;
          issuerDid?: DidKey | DidNil;
          payload?: Record<string, unknown>;
          valid: boolean;
      }

      error if the jwt is invalid