web-ext icon indicating copy to clipboard operation
web-ext copied to clipboard

Stop generating a fresh JWT for each polling request when signing, and poll with exponential backoff

Open diox opened this issue 1 month ago • 0 comments

Currently, web-ext sign polls AMO API every second for validation and approval results and each of these requests generates a fresh JWT.

JWT for AMO API have a max expiration time of 5 minutes, and are now documented as being reusable. web-ext should take advantage of this and:

  • Re-use the JWT generated at the beginning of the submission process for a few minutes (let's say up to 15 seconds before expiration date to give some leeway)
  • Use exponential backoff to avoid polling that much both at validation and approval.

diox avatar Dec 12 '25 12:12 diox