Merge pull request #136 from tpavlek/add_bnet_accountId

Updated AccessToken to support Battle.net accountId return values
1.0
Ben Ramsey 2014-11-27 17:08:08 -05:00
commit d966614804
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ class AccessToken
// Mailru uses x_mailru_vid instead of uid
isset($options['x_mailru_vid']) and $this->uid = $options['x_mailru_vid'];
//Battle.net uses accountId instead of uid
isset($options['accountId']) and $this->uid = $options['accountId'];
// We need to know when the token expires. Show preference to
// 'expires_in' since it is defined in RFC6749 Section 5.1.
// Defer to 'expires' if it is provided instead.