Skip to content

Fix: Licensing SDK deletes stored licence key on temporary API errors - #25

Merged
mzakash merged 7 commits into
mainfrom
akash/sur-5796-licensing-sdk-deletes-stored-licence-key-on-temporary-api
Sep 16, 2026
Merged

mzakash merged 7 commits into
mainfrom
akash/sur-5796-licensing-sdk-deletes-stored-licence-key-on-temporary-api

Conversation

@mzakash

@mzakash mzakash commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Settings::get_activation() previously wiped the stored license key/activation on any API error (including transient network failures or 5xx responses), forcing merchants to re-enter a valid license key after a temporary outage.
  • Now only a not_found (404) response — meaning the activation genuinely no longer exists — clears the activation_id and prompts re-activation.
  • Any other error (timeouts, server errors, etc.) is treated as transient: the license key and activation id are kept, and the license form stays in the "activated" state while surfacing an "unable to verify right now, try again later" notice.

Why

Temporary API/network errors were being treated the same as a real deactivation, silently logging merchants out of their license after any blip in connectivity to the licensing server.

Test plan

  • Simulate a not_found activation response → confirm activation id is cleared and re-activation is prompted.
  • Simulate a timeout/5xx from the activation endpoint → confirm the stored license key/activation id are preserved and the "could not verify" notice is shown.
  • Confirm normal (successful) activation lookups are unaffected.

@mzakash mzakash self-assigned this Sep 14, 2026
ManiruzzamanAkash and others added 6 commits September 14, 2026 20:08
Patch release for the licensing SDK fix that keeps the stored license
key on temporary API errors instead of clearing it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@mzakash
mzakash merged commit c24515d into main Sep 16, 2026
2 checks passed
@mzakash
mzakash deleted the akash/sur-5796-licensing-sdk-deletes-stored-licence-key-on-temporary-api branch September 16, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants