Closed dmh43 closed 7 years ago
yeah, I don't know. I mean, obviously I understand that this is confusing but on the other hand I really don't want to impose the cost of running a git process every single time we need to access that value. What's the use case here? are you trying to recover from a failed authentication? cause in this case I'd much rather have code that purges the auth cache in response to 403 errors
The use case is: when I expire a oauth token, or change my password on github, and then update the information in my gitconfig. As you mentioned, it's unexpected that the a password previously entered would continue to be used.
I like the idea of expiring the cache based on the response from github. I'll rework to incorporate that.
I was very confused for a while when I updated my global git config, but gh-auth still used the old token :)