Skip to content

Commit

Permalink
fix(lastfm): fix auth callback param
Browse files Browse the repository at this point in the history
- Fixes callback url by changing "callback" to "cb"
- Uses ".com" English website
  • Loading branch information
jackmerrill committed May 6, 2022
1 parent d6506de commit ce69e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/lastfm/lastfm.go
Expand Up @@ -18,7 +18,7 @@ import (
)

var (
authURL = "http://www.lastfm.com.br/api/auth"
authURL = "http://www.lastfm.com/api/auth"
endpointProfile = "http://ws.audioscrobbler.com/2.0/"
)

Expand Down Expand Up @@ -66,7 +66,7 @@ func (p *Provider) Debug(debug bool) {}
func (p *Provider) BeginAuth(state string) (goth.Session, error) {
urlParams := url.Values{}
urlParams.Add("api_key", p.ClientKey)
urlParams.Add("callback", p.CallbackURL)
urlParams.Add("cb", p.CallbackURL)

session := &Session{
AuthURL: authURL + "?" + urlParams.Encode(),
Expand Down

0 comments on commit ce69e1d

Please sign in to comment.