From bef3ccf4521d4ed431f3cdfc66e618c619ce28e4 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Tue, 3 Nov 2026 22:08:49 +0100 Subject: Share one Fiken login between programs fikenconfig keeps an OAuth app and a grant per account in ~/.config/fiken, and finds the account that reaches a company. Renewing a grant takes a lock, so programs sharing it take turns. --- fikenauth/login.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fikenauth/login.go') diff --git a/fikenauth/login.go b/fikenauth/login.go index e438755..ac8eee9 100644 --- a/fikenauth/login.go +++ b/fikenauth/login.go @@ -52,11 +52,11 @@ func (c Config) Login(ctx context.Context, announce func(authURL string)) (Token redirect, err := url.Parse(c.redirectURL()) if err != nil { - return Token{}, fmt.Errorf("fiken.redirect_url %q is not a URL: %w", c.redirectURL(), err) + return Token{}, fmt.Errorf("redirect URL %q is not a URL: %w", c.redirectURL(), err) } if !isLoopback(redirect.Hostname()) { return Token{}, fmt.Errorf( - "fiken.redirect_url %q does not point at this machine; "+ + "redirect URL %q does not point at this machine; "+ "use a localhost URL, or log in with --manual", c.redirectURL()) } -- cgit v1.3.1