tpavlek / oauth2-bnet

A Battle.net provider for league/oauth2-client
17 stars 15 forks source link

Handle 404 response #10

Open tsdarky opened 7 years ago

tsdarky commented 7 years ago

Scenario:

  1. Create account in US region and login
  2. Set $this->region to 'eu'
  3. Try to retrive user data via SC2Provider

It will response 404 "Sc2 Profile Not Found" and Battlenet\checkResponse() will throw error "Undefined index: error_description"

tpavlek commented 7 years ago

Thanks for the bug report. I don't have a tonne of time for this so I can hopefully get to this when I'm able to.

If you'd like to submit a pull request fixing this it would definitely be appreciated though!