ctx.airline (PluginAirlineAccessor) gives read-only access to the currently-bound airline plus a pre-configured HTTP client. See PluginAirlineAccessor and PluginAirline for the full shapes.
getCurrent()
Returns the current airline binding. Re-call it when you need a fresh snapshot — there’s no event subscription.
createClient() — recommended
Returns an axios instance pre-configured for the bound airline:
baseURLis set toairline.baseUrl(resolved per request).Authorizationheader carries the current VA bearer.- On a
401response, the shell exchanges the stored refresh token at the VA’srefresh_url. If refresh succeeds, the request is retried exactly once. If the VA didn’t configure arefresh_url, the user has no refresh token, or the VA rejected the refresh, the401propagates and the shell’s existing re-auth flow takes over.
createClient() is the recommended path (refresh handling for free); reach for getCurrent() when you only need the airline’s identity or base URL. The renderer-side equivalent is useVaApi().