From d5ac5e4b3c2370712b28f9dfe468701fbd73e133 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 22:36:20 -0500 Subject: [PATCH] fix: needs to be a pointer receiver --- api/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/oauth.go b/api/oauth.go index 5a77b57..90fd2c6 100644 --- a/api/oauth.go +++ b/api/oauth.go @@ -60,7 +60,7 @@ func (o Oauth) authUrl() string { return o.config().AuthCodeURL("state") } -func (o Oauth) loadToken(config *oauth2.Config) bool { +func (o *Oauth) loadToken(config *oauth2.Config) bool { token := &oauth2.Token{} if o.cfg.Oauth.Token != "" {