From aa2cab090f870148caaa9ad20965216ad0a7c16c Mon Sep 17 00:00:00 2001 From: Troy Pavlek Date: Fri, 12 Sep 2014 06:49:34 -0600 Subject: [PATCH] Updated AccessToken to support Battle.net accountId return values --- src/Token/AccessToken.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Token/AccessToken.php b/src/Token/AccessToken.php index 425d3fcd..ef2974cc 100755 --- a/src/Token/AccessToken.php +++ b/src/Token/AccessToken.php @@ -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.