diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 6bedd2b..621f10e 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -11,7 +11,7 @@ import ( ) var isConfigured bool -var isConfiguredMu sync.RWMutex +var isConfiguredMu sync.Mutex type ConfigureCredentials struct { ClientID string `json:"client_id"` @@ -20,8 +20,6 @@ type ConfigureCredentials struct { } func IsConfigured() bool { - isConfiguredMu.RLock() - defer isConfiguredMu.RUnlock() return isConfigured }