Skip to content

Commit 9eebf9c

Browse files
committed
fix: rename Twitter authorizeURL to authenticateURL to stay consistent with the API naming
1 parent a1f3d5c commit 9eebf9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/provider/twitter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
const (
1818
requestURL = "https://api.twitter.com/oauth/request_token"
19-
authorizeURL = "https://api.twitter.com/oauth/authenticate"
19+
authenticateURL = "https://api.twitter.com/oauth/authenticate"
2020
tokenURL = "https://api.twitter.com/oauth/access_token"
2121
endpointProfile = "https://api.twitter.com/1.1/account/verify_credentials.json"
2222
)
@@ -109,7 +109,7 @@ func newConsumer(provider *TwitterProvider) *oauth.Consumer {
109109
provider.Secret,
110110
oauth.ServiceProvider{
111111
RequestTokenUrl: requestURL,
112-
AuthorizeTokenUrl: authorizeURL,
112+
AuthorizeTokenUrl: authenticateURL,
113113
AccessTokenUrl: tokenURL,
114114
})
115115
return c

0 commit comments

Comments
 (0)