Add credentials helpers for shared netrc logic