Store token in ~/.authinfo.gpg
This would let you store your password alongside your other passwords ;)
You can easily receive them from elisp with auth-source-user-and-password.
I guess many people even already have a github token for ghub there so they could just re-use that.
this. came here just for this.
Got it with the hint of @dakra we can use e.g,
(setq paradox-github-token (cadr(auth-source-user-and-password "api.github.com" "a-schaefers^paradox")))
and placed in ~/.authinfo or ~/.authinfo.gpg would be an entry in format of,
machine api.github.com login a-schaefers^paradox password aj809cjf430ifj034jf304fij (fake api credential -------------------------------------------------------^^^^^^^^^^^^^^^^^^^^)
cheers
Is this format same as in the ~/.netrc file?
@hjpotter92 https://www.masteringemacs.org/article/keeping-secrets-in-emacs-gnupg-auth-sources mentions that Emacs' auth-source lib works with .netrc files, though it's not clear whether that's because it uses the same format or auth-source knows how to read two different formats.