From dee031bb1d6f0a1ca05c43f8882c88be72931d5e Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:55:39 +0200 Subject: [PATCH] docs(registry): shorten the NewDesktopAuthProvider comment Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> --- internal/registry/desktop.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/registry/desktop.go b/internal/registry/desktop.go index d4cc60cc9..ff5ec089e 100644 --- a/internal/registry/desktop.go +++ b/internal/registry/desktop.go @@ -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,