Skip to content

Commit

Permalink
pull request update (markbates/goth#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtolio committed Dec 30, 2016
1 parent d1c5be1 commit 3bf6269
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goth.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (a *AuthProvider) login(w http.ResponseWriter, r *http.Request) {
}

state := newState()
sess, err := a.Provider.BeginAuth(ctx, state)
sess, err := a.Provider.BeginAuthCtx(ctx, state)
if err != nil {
wherr.Handle(w, r, err)
return
Expand Down Expand Up @@ -121,7 +121,7 @@ func (a *AuthProvider) callback(w http.ResponseWriter, r *http.Request) {
return
}

authToken, err := sess.Authorize(ctx, a.Provider, r.URL.Query())
authToken, err := sess.AuthorizeCtx(ctx, a.Provider, r.URL.Query())
if err != nil {
wherr.Handle(w, r, err)
return
Expand Down Expand Up @@ -162,7 +162,7 @@ func (a *AuthProvider) User(ctx context.Context) (*goth.User, error) {
return nil, nil
}

u, err := a.Provider.FetchUser(ctx, sess)
u, err := a.Provider.FetchUserCtx(ctx, sess)
if err != nil {
log.Printf("failed to fetch user: %v", err)
return nil, nil
Expand Down

0 comments on commit 3bf6269

Please sign in to comment.