aboutsummaryrefslogtreecommitdiff
path: root/server/auth/github/github.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/auth/github/github.go')
-rw-r--r--server/auth/github/github.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/auth/github/github.go b/server/auth/github/github.go
index d546478..38009e1 100644
--- a/server/auth/github/github.go
+++ b/server/auth/github/github.go
@@ -97,10 +97,8 @@ func (c *Config) Revoke(token *oauth2.Token) error {
}
// StartSession retrieves an authentication endpoint from Github.
-func (c *Config) StartSession(state string) *auth.Session {
- return &auth.Session{
- AuthURL: c.config.AuthCodeURL(state),
- }
+func (c *Config) StartSession(state string) string {
+ return c.config.AuthCodeURL(state)
}
// Exchange authorizes the session and returns an access token.