fix: needs to be a pointer receiver
This commit is contained in:
parent
e7bfd0c6c9
commit
d5ac5e4b3c
|
@ -60,7 +60,7 @@ func (o Oauth) authUrl() string {
|
||||||
return o.config().AuthCodeURL("state")
|
return o.config().AuthCodeURL("state")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o Oauth) loadToken(config *oauth2.Config) bool {
|
func (o *Oauth) loadToken(config *oauth2.Config) bool {
|
||||||
token := &oauth2.Token{}
|
token := &oauth2.Token{}
|
||||||
|
|
||||||
if o.cfg.Oauth.Token != "" {
|
if o.cfg.Oauth.Token != "" {
|
||||||
|
|
Loading…
Reference in New Issue