diff --git a/pkg/auth/github.go b/pkg/auth/github.go index df83505..573abaf 100644 --- a/pkg/auth/github.go +++ b/pkg/auth/github.go @@ -46,7 +46,7 @@ func (p *githubProvider) AuthURL() string { } func (p *githubProvider) AuthCodeURL(c *gin.Context, state string) (string, error) { - authURL := p.oauth2.AuthCodeURL(state, oauth2.AccessTypeOffline) + authURL := p.oauth2.AuthCodeURL(state) return authURL, nil } diff --git a/pkg/auth/google.go b/pkg/auth/google.go index b19d74e..de3b3a4 100644 --- a/pkg/auth/google.go +++ b/pkg/auth/google.go @@ -42,7 +42,7 @@ func (p *googleProvider) RedirectURL() string { } func (p *googleProvider) AuthCodeURL(c *gin.Context, state string) (string, error) { - authURL := p.oauth2.AuthCodeURL(state, oauth2.AccessTypeOffline) + authURL := p.oauth2.AuthCodeURL(state) return authURL, nil }