ReconfigureIO / reco

A command line tool for interacting with Reconfigure.io services
Apache License 2.0
6 stars 3 forks source link

test auth during reco auth #6

Closed CampGareth closed 6 years ago

CampGareth commented 6 years ago

reco auth will now make a call to /user before saving the provided token to disk. If that call fails the token is invalid and the user is notified.

CampGareth commented 6 years ago

This is [WIP] because the error messages around failed auth aren't that helpful at the moment, e.g.

$ reco auth gh_00000000_foobar

Error: authentication failed. Run 'reco auth' to authenticate
CampGareth commented 6 years ago

Messages are now:

$ reco auth super-invalid-token

Error: The token is invalid

$ reco auth close-to-valid-token

Error: Authentication failed. The provided token is invalid

$ reco auth valid-token

2018-01-05 11:54:42| Authentication successful
CampGareth commented 6 years ago

reco auth should test auth

CampGareth commented 6 years ago

Reco v0.4.0

CampGareth commented 6 years ago

Reco v0.4.0