def reissue_receipt(receipt):
 time_ = calendar.timegm(time.gmtime())
 receipt_obj = Receipt(receipt)
 data = receipt_obj.receipt_decoded()
 data.update({'exp': (time_ + settings.WEBAPPS_RECEIPT_EXPIRY_SECONDS), 'iat': time_, 'nbf': time_})
 return sign(data)

def reissue_receipt ( receipt ) : time_ = calendar . timegm ( time . gmtime ( ) ) receipt_obj = Receipt ( receipt ) data = receipt_obj . receipt_decoded ( ) data . update ( { 'exp' : ( time_ + settings . WEBAPPS_RECEIPT_EXPIRY_SECONDS ) , 'iat' : time_ , 'nbf' : time_ } ) return sign ( data )
reissues and existing receipt by updating the timestamps and resigning the receipt .