Skip to content

Commit af2139e

Browse files
Added AUTH_ACCESS_TOKEN to allowed methods
1 parent 1c16592 commit af2139e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function authenticate($tokenOrLogin, $password = null, $authMethod = null
340340
throw new InvalidArgumentException('You need to specify authentication method!');
341341
}
342342

343-
if (null === $authMethod && in_array($password, [self::AUTH_URL_TOKEN, self::AUTH_URL_CLIENT_ID, self::AUTH_HTTP_PASSWORD, self::AUTH_HTTP_TOKEN, self::AUTH_JWT], true)) {
343+
if (null === $authMethod && in_array($password, [self::AUTH_URL_TOKEN, self::AUTH_URL_CLIENT_ID, self::AUTH_HTTP_PASSWORD, self::AUTH_HTTP_TOKEN, self::AUTH_ACCESS_TOKEN, self::AUTH_JWT], true)) {
344344
$authMethod = $password;
345345
$password = null;
346346
}

0 commit comments

Comments
 (0)