github-clone.el icon indicating copy to clipboard operation
github-clone.el copied to clipboard

Store authentication data in `~/.emacs.d`

Open swsnr opened this issue 11 years ago • 1 comments

I don't think that the Git configuration file is the right place to store authentication data. It's git's configuration after all, and not that of an Emacs extension. FWIW, hub doesn't do this either, and saves its token to ~/.config/hub instead.

Can I customize this package to store the username and token in a file within ~/.emacs.d/?

swsnr avatar Aug 05 '14 11:08 swsnr

github-clone is actually dependent on gh.el for the decision on where to store the token. If there is a way to hint gh.el to store it elsewhere then I can add documentation for that method, but at the moment it just uses whatever gh.el's default is. See https://github.com/sigma/gh.el, and specifically https://github.com/sigma/gh.el/blob/master/gh-auth.el for more details.

dgtized avatar Aug 09 '14 21:08 dgtized