mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Fix error message prefix.
This commit is contained in:
parent
bb8496880f
commit
cb029f4c1f
@ -172,7 +172,7 @@ func (c *Config) NewTransportWithCode(code string) (*Transport, error) {
|
|||||||
// contain a refresh token, it returns an error.
|
// contain a refresh token, it returns an error.
|
||||||
func (c *Config) FetchToken(existing *Token) (*Token, error) {
|
func (c *Config) FetchToken(existing *Token) (*Token, error) {
|
||||||
if existing == nil || existing.RefreshToken == "" {
|
if existing == nil || existing.RefreshToken == "" {
|
||||||
return nil, errors.New("auth2: cannot fetch access token without refresh token")
|
return nil, errors.New("oauth2: cannot fetch access token without refresh token")
|
||||||
}
|
}
|
||||||
return c.retrieveToken(url.Values{
|
return c.retrieveToken(url.Values{
|
||||||
"grant_type": {"refresh_token"},
|
"grant_type": {"refresh_token"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user