Skip to content

Commit

Permalink
fix: e-invoice jwt verification error (#37818)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 authored Nov 1, 2023
1 parent 13d5eec commit 8f4ded6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/regional/india/e_invoice/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ def raise_error(self, raise_exception=False, errors=None):

def set_einvoice_data(self, res):
enc_signed_invoice = res.get("SignedInvoice")
dec_signed_invoice = jwt.decode(enc_signed_invoice, verify=False)["data"]
dec_signed_invoice = jwt.decode(enc_signed_invoice, options={"verify_signature": False})["data"]

self.invoice.irn = res.get("Irn")
self.invoice.ewaybill = res.get("EwbNo")
Expand Down

0 comments on commit 8f4ded6

Please sign in to comment.