Skip to content

v0.0.10

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Aug 06:43
d2e5de6

v0.0.10 ~ "The public wallet API is reachable"


Highlights

All four public wallet routes answered 401 to every credential — including a driver's own Sanctum token, which authenticates fine against every other public endpoint. The API was effectively unusable for wallet operations.


Bug Fixes

  • The four public wallet routes were unreachable by any credential. The fleetbase.api middleware authenticates with Auth::setSession(), which writes the session keys but leaves $login false, so no user resolver is ever bound and $request->user() is null on every public API request. WalletApiController now falls back to the session identity that middleware actually records.
  • Unauthenticated requests returned an HTML page, not JSON. abort() rendered Laravel's error page, so an API client parsing JSON received ~1.8 KB of markup titled "Unauthorized". The controller now throws AuthenticationException, which the API exception handler renders as {"errors":["Unauthenticated."]} with a 401.

Continuous Integration

  • The Postman API contract now runs against this branch's API code rather than the published package, so a release PR's own changes are actually exercised.
  • The contract workflow tracks the current platform release instead of a pinned ref.

Need help?

What's Changed

  • ci: fix the Postman contract and track the latest release automatically by @roncodes in #17
  • ci(postman): test this branch's API code, and unpin the contract workflow by @roncodes in #18
  • ci(release): tag automatically when a dev-v* branch merges to main by @roncodes in #20
  • chore(release): v0.0.10 by @roncodes in #19

Full Changelog: v0.0.9...v0.0.10