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/lock_other.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fikenauth/lock_other.go (limited to 'fikenauth/lock_other.go') diff --git a/fikenauth/lock_other.go b/fikenauth/lock_other.go new file mode 100644 index 0000000..b6c6075 --- /dev/null +++ b/fikenauth/lock_other.go @@ -0,0 +1,7 @@ +//go:build !unix + +package fikenauth + +// lock is a no-op where flock does not exist; two programs renewing one grant +// at the same moment can then still log each other out. +func (s *Store) lock() (unlock func(), err error) { return func() {}, nil } -- cgit v1.3.1