cjoudrey/md2medium

Clear config when access tokens are invalid

Open

#2 ouverte le 18 juil. 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Go (3 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (25 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur