Skip to content

fix(storefront): Register customer device sent an empty duplicate auth header - #39

Merged
roncodes merged 1 commit into
mainfrom
fix/storefront-register-device
Aug 12, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/storefront-register-device

Conversation

@roncodes

Copy link
Copy Markdown
Member

Two faults in one request.

A duplicate, empty auth header. It carried both Customer-Token: {{customer_token}} and a second customer-token: "". HTTP header names are case-insensitive, so the empty one collided with the real token and the endpoint answered "Not authorized to register device for cutomer" — the customer never resolved. The empty duplicate is removed.

An empty body. content: "", so even with a valid token there was no token or platform to register. It now sends {{device_token}} — already injected by the contract run for the FleetOps driver device requests — and platform: "ios".

(The typo in the API's error message, "cutomer", is left alone: changing it would be a user-visible string change unrelated to this fix.)

🤖 Generated with Claude Code

…h header

The request carried BOTH `Customer-Token: {{customer_token}}` and a second,
empty `customer-token: ""`. HTTP header names are case-insensitive, so the empty
one collided with the real token and the endpoint answered "Not authorized to
register device for cutomer" — the customer never resolved.

Its body was also empty, so even with a valid token it had no token or platform
to register. It now sends {{device_token}}, which the contract run already
injects for the FleetOps driver device requests, and platform "ios".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@roncodes
roncodes merged commit fc0c057 into main Aug 12, 2026
1 check passed
@roncodes
roncodes deleted the fix/storefront-register-device branch August 12, 2026 07:57
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.

1 participant