# \[Pitch\] Package Registry Authentication

**URL:** <https://forums.swift.org/t/pitch-package-registry-authentication/61047>\
**Category:** Pitches\
**Tags:** packagemanager\
**Created:** [October 27, 2022, 1:45am UTC](https://forums.swift.org/t/pitch-package-registry-authentication/61047 "2022-10-27T01:45:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tomerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tomerd/32/3402_2.png) [@tomerd](https://forums.swift.org/u/tomerd)\
**Post date:** [October 27, 2022, 11:57pm UTC](https://forums.swift.org/t/pitch-package-registry-authentication/61047/4 "2022-10-27T23:57:33Z")

</div>

> [@stevapple](#):
>
> We should always prefer more secure way of handling credentials.

+1 I think the proposal should state that clearly - that it should prefer the most secure way of handling credentials for the platform (with the obvious example of the keychain on macOS), and that `.netrc` is a fallback for those cases (platforms) where there is not a clear solution. of course, we would need to debate the details of that per platform, but IMO that is an implementation detail that goes beyond the proposal which is setting the tone conceptually.

---

_[View the full topic](https://forums.swift.org/t/pitch-package-registry-authentication/61047)._
