AuthBucket\OAuth2\TokenType\TokenTypeHandlerInterface::createAccessToken PHP Method

createAccessToken() public method

Create and save access_token parameters for generate response.
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
    public function createAccessToken($clientId, $username = '', $scope = [], $state = null, $withRefreshToken = true);
TokenTypeHandlerInterface