Unable to configure API endpoint using command line tool #724
Labels
command line tool
documentation
op-ex
Refactoring, Tech Debt or any other operational excellence work.
The command line tool reads the access token from the
MAPBOX_ACCESS_TOKEN
environment variable, but an access token is only valid for a particular API endpoint. The tool should also read the API endpoint from the environment, defaulting to api.mapbox.com.This code needs to pass the API endpoint into the
Credentials(accessToken:host:)
initializer:mapbox-directions-swift/Sources/MapboxDirectionsCLI/CodingOperation.swift
Lines 8 to 12 in 5af9106
While we’re at it, the
MAPBOX_ACCESS_TOKEN
environment variable isn’t documented in--help
./cc @mapbox/navigation-ios @purew
The text was updated successfully, but these errors were encountered: