Skip to content

Commit

Permalink
Updated AccessToken to support Battle.net accountId return values
Browse files Browse the repository at this point in the history
  • Loading branch information
tpavlek committed Sep 12, 2014
1 parent 47d9447 commit aa2cab0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Token/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function __construct(array $options = null)
// 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.
Expand Down

0 comments on commit aa2cab0

Please sign in to comment.