topgun: use access token
Broken after
@@ -3,7 +3,6 @@ package topgun
import (
"context"
"encoding/json"
- "errors"
"io"
"io/ioutil"
"net/http"
@@ -191,12 +190,5 @@ func FetchToken(webURL, username, password string) (*oauth2.Token, error) {
return nil, err
}
- idToken, ok := token.Extra("id_token").(string)
- if !ok {
- return nil, errors.New("missing id_token")
- }
-
- token.AccessToken = idToken
-
return token, nil
}
