summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/OAuth2/Server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OAuth2/Server.php b/src/OAuth2/Server.php
index edc9faf..b138a55 100644
--- a/src/OAuth2/Server.php
+++ b/src/OAuth2/Server.php
@@ -350,7 +350,7 @@ class Server implements ResourceControllerInterface,
if (is_string($key)) {
$this->grantTypes[$key] = $grantType;
} else {
- $this->grantTypes[] = $grantType;
+ $this->grantTypes[$grantType->getQuerystringIdentifier()] = $grantType;
}
// persist added grant type down to TokenController