mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
removed NewTransport inline example
This commit is contained in:
parent
e049d530c3
commit
eae9d0e836
@ -160,11 +160,6 @@ func (c *Config) AuthCodeURL(state string) (authURL string) {
|
||||
// initialize the new transport with a token, so after creation,
|
||||
// you need to set a valid token (or an expired token with a valid
|
||||
// refresh token) in order to be able to do authorized requests.
|
||||
//
|
||||
// Example:
|
||||
// t := c.NewTransport()
|
||||
// t.SetToken(validToken)
|
||||
//
|
||||
func (c *Config) NewTransport() *Transport {
|
||||
return NewTransport(c.Transport, c, nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user