public createAccessToken ( string $clientId, string $username = '', array $scope = [], string $state = null, boolean $withRefreshToken = true ) : array | ||
$clientId | string | client_id this access token should belongs to |
$username | string | username this access token should belongs to |
$scope | array | All scope that this access token grant |
$state | string | Original state which should preserve |
$withRefreshToken | boolean | False for response_type=token |
return | array | All parameters for generate response |