yoshuawuyts/crossgen

CLI flag to regenerate GitHub token

Open

#10 opened on Sep 10, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Rust (5 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (20 stars)
PR merge metrics
 (PR metrics pending)

Description

Feature Request

Summary

Allow crossgen --regenerate-token to authenticate with GitHub again and generate a new token.

Motivation

If you delete the token from the GitHub UI but it's still cached on your system then crossgen will keep using that invalid token. Right now you have to hunt down the token and delete it to get crossgen to re-auth with GitHub.

Unresolved questions

Maybe it's possible to be smarter and check to see if the token exists over the GitHub API but I haven't looked into that

Contributor guide