diff options
Diffstat (limited to 'server/auth/google/google.go')
-rw-r--r-- | server/auth/google/google.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/auth/google/google.go b/server/auth/google/google.go index 9a151f6..b707310 100644 --- a/server/auth/google/google.go +++ b/server/auth/google/google.go @@ -103,10 +103,8 @@ func (c *Config) Revoke(token *oauth2.Token) error { } // StartSession retrieves an authentication endpoint from Google. -func (c *Config) StartSession(state string) *auth.Session { - return &auth.Session{ - AuthURL: c.config.AuthCodeURL(state, oauth2.SetAuthURLParam("hd", c.domain)), - } +func (c *Config) StartSession(state string) string { + return c.config.AuthCodeURL(state, oauth2.SetAuthURLParam("hd", c.domain)) } // Exchange authorizes the session and returns an access token. |