docs(registry): shorten the NewDesktopAuthProvider comment

Signed-off-by: Alano Terblanche <[email protected]>
This commit is contained in:
Alano Terblanche
2026-10-07 14:24:28 +02:00
committed by Nicolas De loof
parent 233a89f405
commit dee031bb1d
+2 -6
View File
@@ -78,12 +78,8 @@ func newDesktopSession(name, serverAddress string, opts ...dockerhub.Option) *de
}
}
// NewDesktopAuthProvider returns an AuthProvider that resolves Docker Hub and
// Docker Hub staging credentials from the Docker Desktop session, and falls
// back to fallback for other registries or when there is no usable session.
//
// The OAuth access token is returned as the account's password, as containerd
// treats an IdentityToken as a refresh token.
// NewDesktopAuthProvider returns an AuthProvider that uses the Docker Desktop
// session for Docker Hub, and fallback otherwise.
func NewDesktopAuthProvider(fallback AuthProvider) AuthProvider {
return &desktopAuthProvider{
fallback: fallback,