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 }