Skip to content

Commit

Permalink
fix: e-invoice jwt verification error (backport #37818) (#37820)
Browse files Browse the repository at this point in the history
fix: e-invoice jwt verification error (#37818)

(cherry picked from commit 8f4ded6)

Co-authored-by: Dany Robert <[email protected]>
  • Loading branch information
mergify[bot] and rtdany10 authored Nov 1, 2023
1 parent 9607d69 commit 428f7a6
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 428f7a6

Please sign in to comment.