fix: JWT decoding error (#26624)
This commit is contained in:
parent
07337d5c78
commit
b0f3c0f3fd
@ -928,7 +928,7 @@ class GSPConnector():
|
||||
|
||||
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')
|
||||
@ -1126,4 +1126,4 @@ def check_scheduler_status():
|
||||
def job_already_enqueued(job_name):
|
||||
enqueued_jobs = [d.get("job_name") for d in get_info()]
|
||||
if job_name in enqueued_jobs:
|
||||
return True
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user