From e7bfd0c6c9407058d6567b0de40d4493619d3fa0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 22:33:08 -0500 Subject: [PATCH] fix: ensure o.refresher can never be nil --- api/oauth.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/oauth.go b/api/oauth.go index 47c595c..5a77b57 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -108,6 +108,11 @@ func (o Oauth) keepAlive() { return } + if o.refresher == nil { + o.logger.Error("No refresher provided.") + return + } + if o.keepAliveRunning { return }