diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2026-11-03 22:08:49 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2026-11-03 22:08:49 +0100 |
| commit | bef3ccf4521d4ed431f3cdfc66e618c619ce28e4 (patch) | |
| tree | ef8e6ff90fed4b27d4f2cfd082106f2efdb38ca5 /fikenauth/login.go | |
| parent | a5491c9dccdf4678bf3b4380d208cf2562afeee4 (diff) | |
| download | fiken-43dc4f31b0d28b817cf74c2e91c5f31471214349.tar.gz fiken-43dc4f31b0d28b817cf74c2e91c5f31471214349.zip | |
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.
Diffstat (limited to 'fikenauth/login.go')
| -rw-r--r-- | fikenauth/login.go | 4 |
1 files changed, 2 insertions, 2 deletions
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()) } |
