cjoudrey/md2medium

Clear config when access tokens are invalid

Open

#2 aperta il 18 lug 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (3 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (25 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Steps to reproduce:

  • Setup md2medium with valid API tokens.
  • Revoke an API token.
  • Run md2medium and you will see a 401 error.

When this happens we should clear the token from the config file such that the next time md2medium is run the user will be prompted for a token again.

Even better, we could prompt the user for a new token when the 401 happens.

Guida contributor