171d4ac77c
Before this change, the only sure fire way to make sure you had a valid Access token was to run `cloudflared access login <your domain>`. That was because that command would actually make a preflight request to ensure that the edge considered that token valid. The most common reasons a token was no longer valid was expiration and revocation. Expiration is easy to check client side, but revocation can only be checked at the edge. This change adds the same flow that cfd access login did to the curl command. It will preflight the request with the token and ensure that the edge thinks its valid before making the real request. |
||
---|---|---|
.. | ||
carrier.go | ||
carrier_test.go | ||
cmd.go | ||
cmd_test.go |